Previous: 4.67.2.27. Exp function To the Table of Contents Next: 4.67.2.29. FileSize function
4.67.2.27. Exp function Table of Contents 4.67.2.29. FileSize function

- 4.67.2.28. -
Table of Contents
4. Standard Units
4.67. System - Built-in routines
4.67.2. System Unit Procedures and Functions
4.67.2.28. FilePos function


4.67.2.28. FilePos function

Targets: MS-DOS, OS/2, Win32


System Unit

Returns the current file position of a file.

Declaration:
function FilePos(var F): Longint;
Remarks:
FilePos returns zero if the file pointer is at the top of the file and returns the file size if at the end of the file. FilePos works only on open files. If an error occurs, IOResult contains the error code, otherwise it is set to zero.


Previous: 4.67.2.27. Exp function To the Table of Contents Next: 4.67.2.29. FileSize function
4.67.2.27. Exp function Table of Contents 4.67.2.29. FileSize function

- 4.67.2.28. -