System.Classes.TBinaryReader.ReadString
Delphi
function ReadString: string; virtual;
C++
virtual System::UnicodeString __fastcall ReadString(void);
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| function | public | System.Classes.pas System.Classes.hpp | System.Classes | TBinaryReader | 
Description
Reads a string from the stream. ReadString reads a string from the underlying stream, advances into the stream, and returns it.
Note: When using strings and characters, you should use the TEncoding.Unicode encoding. Otherwise, an exception is raised when TBinaryReader will try to read from the stream.