System.Classes.TBinaryReader.ReadChar

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function ReadChar: Char; virtual;

C++

virtual System::WideChar __fastcall ReadChar(void);

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.

See Also

Code Examples