System.Classes.TStringStream.ReadString
Delphi
function ReadString(Count: Integer): string;
C++
System::UnicodeString __fastcall ReadString(int Count);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TStringStream |
Description
Returns a string that consists of up to Count bytes from the current position in the string stream, and advances the current position of the stream by the number of bytes read.
Use Read to read the contents of the string stream into a string, starting at the current position. If Count extends beyond the end of the DataString, the returned string will only contain the characters up to the end of DataString, and the current position is advanced accordingly.
Note: ReadString does the same thing as Read, except that it returns a string rather than filling a buffer.