Name

Eoln Function

Syntax

function Eoln(var F: TextFile): Boolean;

Description

The Eoln function returns True if the text file F is at the end of a line or the end of the file. Eoln interprets a carriage return (#13) as the end of line. Eoln 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

Eof Function, IOResult Function, Reset Procedure, SeekEoln Procedure, TextFile Type

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.