Internet Direct (Indy)
Home
PreviousUpNext
FileSizeByName Function

Retrieves the size of a specified file.

Pascal
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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.