Topic Path: Symbol Reference > Functions > FileSizeByName Function
ContentsIndexHome
PreviousUpNext
FileSizeByName Function

Retrieves the size of a specified file.

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

Int64 - Size of the file.

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.

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.