Internet Direct (Indy) Version 9.0.1 Beta
FileSizeByName
Retrieves the size a file.

function FileSizeByName(sFilename: string): cardinal;
Parameters
sFilename: string
The file name to be examined.

Returns
Cardinal - Size of the file.

Description
FileSizeByName is a Cardinal function used to determine the size of the file specified in sFilename.

FileSizeByName is an OS-independent mechanism used to determine the size of an Operating System file, and uses TFileStream.Size to determine the number of bytes returned by the function.