System.SeekEoln
Delphi
function SeekEoln(): Boolean; overload;
function SeekEoln(var F: Text): Boolean; overload;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.pas | System | System |
Description
Returns the end-of-line status of a file, ignoring whitespace.
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 nonwhitespace 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 run-time errors using exceptions. When using {$I-}, use IOResult to check for I/O errors.
See Also