ExtractFileSize function
Return to Introduction  Previous page  Next page
Unit
acUtils  

Declaration
function ExtractFileSize(FileName: String): Extended;  

Description
The ExtractFileSize function returns the size (in bytes) of file specified in FileName parameter. The return value is number with floating point. Use FloatToStr function to convert the return value to string.  

Note
Function returns -1 if specified file couldn't be found or opened.  

See also
FileSizeToStr function.