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.