Internet Direct (Indy)
Home
PreviousUpNext
TIdIOHandler.ReadString Method

Reads a Delphi string from the IOHandler buffer.

Pascal
function ReadString(
    ABytes: Integer
): string;
Parameters 
Description 
ABytes 
Number of bytes requested from the IOHandler. 

string - Values read from the IOHandler.

ReadString is a String function used to read a string containing the number of bytes specified in ABytes from the IOHandler. 

ReadString calls ReadBytes to read values from the internal buffer for the IOHandler. ReadString calls BytesToString to prepare the string used in the return value for the method. 

Use ReadChar, ReadBytes, or ReadStrings to access data in the IOHandler buffer as the requested data type.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.