System.Classes.TBinaryReader.ReadChar
Delphi
function ReadChar: Char; virtual;
C++
virtual System::WideChar __fastcall ReadChar();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TBinaryReader |
Description
Reads a char from the stream. ReadChar reads a Char value 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.