RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.SeekEoln Function

Returns the end-of-line status of a file, ignoring whitespace.

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

System

In Delphi code, call SeekEoln to determine whether there is only whitespace between the file pointer and the end of the current line. SeekEoln moves the file pointer past any whitespace, leaving it positioned at the end of the current line, the end of the file, or on the next non-whitespace character (whichever comes first). If SeekEoln leaves the file pointer at the end of the current line or at the end of the file, it returns true. Otherwise, it returns false. 

SeekEoln can be used only on open text files.

Note: {$I+} handles runtime errors using exceptions. When using {$I-}, use IOResult to check for I/O errors.
 

 

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