Language:
Русский
English
FileSize (function)
Returns the current size of a file.
Declaration
function FileSize(var F): Longint;
Target
Windows, Real, Protected
Remarks
F is a file variable. FileSize(F) returns the number of components in F. If the file is empty, FileSize(F) returns 0.
With {$I-}, IOResult returns 0 if the operation was successful; otherwise, it returns a nonzero error code.
Restrictions
Cannot be used on a text file. File must be open.