Topic Path: Symbol Reference > Classes > TIdIOHandler Class > TIdIOHandler Methods > ReadString Method
ContentsIndexHome
PreviousUpNext
TIdIOHandler.ReadString Method

Reads a Delphi string from the IOHandler buffer.

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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.