RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.Eoln Function

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

Pascal
function Eoln: Boolean; overload;
function Eoln(var F: Text): Boolean; overload;
C++
Boolean Eoln();
Boolean Eoln(Text F);

System

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.  

Delphi Examples: 

 

{
This example waits for keyboard input before continuing.
}
procedure TForm1.Button1Click(Sender: TObject);
begin
   WriteLn('Type something on the console and hit return');
   Eoln;
   WriteLn('Write this after you type something');
   Readln;
end;

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!