Language:
Русский
English
Eof (function)
Returns the end-of-file status.
Declaration
Typed or untyped files
function Eof(var F): Boolean;
Text files
function Eof [ (var F: Text) ]: Boolean;
Target
Windows, Real, Protected
Remarks
F, if specified, is a text file variable. If F is omitted, the standard file variable Input is assumed. Eof(F) returns True if the current file position is beyond the last character of the file or if the file contains no
components; otherwise, Eof(F) returns False.
With {$I-}, IOResult returns 0 if the operation was successful; otherwise, it returns a nonzero error code.