Sign in Join
FPDoc Onlineexperiment

TTextReader.ReadLine procedure

Member of TTextReaderpublicIn unit StreamEx

Read a line of text.

Declaration

pascal
procedure ReadLine(out AString: AnsiString); virtual; abstract
 ; overload
function ReadLine: AnsiString; overload

Arguments

AString

The line of text that was read.

Function result

The line of text that was read.

Description

ReadLine will read a line of text from the text data source. A line of text is delimited by a CRLF character pair, a LF character or a CR character. The line ending characters are not included in the string.

The method exists in 2 versions: one function where the line of text is returned as the function result, one procedure where the line of text is returned in the AString parameter.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.