Am 15.12.2011 05:04, schrieb Hans-Peter Diettrich:
Normally I use TFileStream's, which have a Size property. But I find it
nasty to open an file, when I only want to know its size. FPC (like
Delphi) lacks some basic file/directory handling functions (Size,
Remove, Rename...), at least none are listed in the "File handling
overview". While a Delphi user can use the WinAPI for such tasks, a
cross-platform development system should provide according
platform-independent functions.

At least functions for deletion and renaming exist in SysUtils:

http://www.freepascal.org/docs-html/rtl/sysutils/deletefile.html
http://www.freepascal.org/docs-html/rtl/sysutils/renamefile.html

Regards,
Sven
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to