[fpc-devel] Determin file size - how?
Sven Barth
pascaldragon at googlemail.com
Thu Dec 15 15:09:28 CET 2011
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
More information about the fpc-devel
mailing list