Previous: Exp function To the Table of Content Next: FileSize function

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

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: Exp function To the Table of Content Next: FileSize function
Exp function Table of Content FileSize function

- 4.62.2.28 -