Previous: FilePos function To the Table of Content Next: FillChar procedure

- 4.62.2.29 -
Standard Units
System Unit
System Unit Procedures and Functions

FileSize function

Targets: MS-DOS, OS/2, Win32


System Unit

Returns the current size of a file.

Declaration:
function FileSize(var F): Longint;
Remarks:
FileSize returns zero if the file is empty, otherwise it returns the number of components in the file. FileSize works only on open files. If an error occurs, IOResult contains the error code, otherwise it is set to zero.


Previous: FilePos function To the Table of Content Next: FillChar procedure
FilePos function Table of Content FillChar procedure

- 4.62.2.29 -