Internet Direct (Indy) Version 9.0.2 Beta
TIdTCPConnection.ReadString
Reads a string value from the connection.

function ReadString(const ABytes: Integer): string;
Parameters
const ABytes: Integer
Number of bytes to be read from the connection.

Returns
String - Data read from the Indy read buffer.

Description
ReadString is a String function used to read the number of bytes specified in ABytes from the connection. ReadString uses ReadBuffer to get the string from the Indy read buffer.

ReadString delays until the number of bytes in ABytes is available in the Indy read buffer. If the number of bytes is not known, use ReadLn or ReadLnWait.