Saltar al contenido principal

EOF

Tests whether the file position is at the end of a file.

Structure

Eof [ (var F: Text) ]: Boolean;

Parameters

Return Value

Description

Eof tests whether the current file position is the end-of-file. F is a 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 is empty; otherwise, Eof(F) returns False. |