- 4.67.2.29. -
Table of Contents
4. Standard Units
4.67. System - Built-in routines
4.67.2. System Unit Procedures and Functions
4.67.2.29. FileSize function
4.67.2.29. 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.
- 4.67.2.29. -