FileSizeByName
Retrieves the size of a specified file.
function FileSizeByName(const AFilename: string): Int64;
Unit
Parameters
const AFilename: string
The file name to be examined.
Return Value
Int64 - Size of the file.
Description
FileSizeByName is a Int64 function used to determine the size of the file specified in AFilename. 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.