-
Declaration:
- Function Eof [(F : Any file type)] : Boolean;
-
Description:
- Eof returns True if the file-pointer has reached the end of the file, or if the file is empty. In
all other cases Eof returns False. If no file F is specified, standard input is assumed.
-
Errors:
- Depending on the state of the {$I} switch, a runtime error can be generated if there is an
error. In the {$I-} state, use IOResult to check for errors.
-
See also:
- Eoln (486), Assign (455), Reset (558), Rewrite (559)
Listing: refex/ex18.pp