System.Classes.TBinaryReader.ReadString

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ReadString: string; virtual;

C++

virtual System::UnicodeString __fastcall ReadString();

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.

See Also

Code Examples