System.Eoln

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Eoln(): Boolean; overload;
function Eoln(var F: Text): Boolean; overload;

Properties

Type Visibility Source Unit Parent
function public System.pas System System

Description

Tests whether the file pointer is at the end of a line.

In Delphi code, Eoln tests whether the current file position is the end-of-line of a text file. F, if specified, is a text file variable. If F is omitted, the standard file variable Input is assumed.

Eoln(F) returns True if the current file position is at an end-of-line or if Eof(F) is true; otherwise, Eoln(F) returns False.

See Also


Code Examples