ReadLn

Declaration: TILabFStream.ReadLn(EOLMode: integer): string;
The function ReadLn reads a string from the current stream position to the next "end of line" indicator (ASCII 10, or ASCII 13, depending on EOLMode). Please note that ReadLn returns only printable characters (>= ASCII 32) and tabs (ASCII 9), all other characters in the stream are discarded. The parameter EOLMode determines which characters are recognized as "end of line".

EOLMode "End of Line" Remarks
0 $0A (ASCII 10) standard case, use this mode by default
1 $0D (ASCII 13)
2 $0A or $0D this can cause alternating empty lines to be returned
3 $0A$0D UNIX format
4 $0D$0A Windows format

Hint: In order to avoid reading data beyond the end of the stream, the user should call the function Eos before reading the stream data. Reading beyond the end of the stream yields undefined results.