Name

Eof Function

Syntax

function Eof(var F: File): Boolean;
function Eof(var F: TextFile): Boolean;

Description

The Eof function returns True if the file F is at the end of the file. Eof is not a real function.

Errors

  • If the file F is not open, Eof reports I/O error 103.

  • The file F must have been opened by calling Reset. If the file was opened by calling Rewrite or Append, Eof reports I/O error 104.

See Also

Eoln Function, File Keyword, IOResult Function, Reset Procedure, SeekEof Procedure, TextFile Type, Truncate Procedure

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.