Indy 9
FileSizeByName
Unit: IdGlobal
Retrieves the size of a specified file.
function FileSizeByName(const AFilename: string): Int64;
Unit
IdGlobal
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.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.