FilePos (function)

Language:
Русский
English

 FilePos (function)


Returns the current file position of a file.

Declaration

 function FilePos(var F): Longint;

Target

Windows, Real, Protected

Remarks

F is a file variable. If the current file position is at the beginning of the file, FilePos(F) returns 0. If the current file position is at the end of the file--that is, if Eof(F) is True--FilePos(F) is equal to FileSize(F).

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.

See Also

Sample Code

Тэги: FilePos
| G+
Код для вставки: :: :: :: ::
Поделиться: // //