Internet Direct (Indy) Version 9.0.1 Beta
TIdStream.ReadLn
Implements line-oriented input for Indy stream-based operations.

function ReadLn: string;
Returns
String - Line read from the stream.

Description
ReadLn is a String function that provides line-oriented input for Indy stream-based input operations. ReadLn will read character values from the stream until a line terminator (CRLF) is detected, or the end of the stream is reached.

When the origin stream is a TIdTCPStream instance that has been cast to a TIdStream instance, TIdStream.Connection is used to perform ReadLn input.

The return value for the method can contain CHAR0 when the stream contains the null character. The line terminator sequence (CRLF) is omitted from the return value for the method.