Internet Direct (Indy) Version 9.0.2 Beta
FileSizeByName
Retrieves the size of a specified file.

function FileSizeByName(AFilename: string): Int64;
Parameters
AFilename: string
The file name to be examined.

Returns
Int64 - Size of the file.

Description
FileSizeByName is a Int64 function used to determine the size of the file specified in sFilename. FileSizeByName is an OS-independent mechanism used to determine the size of a file in a file system, and uses TFileStream.Size to determine the number of bytes returned by the function.