System.Classes.TBinaryReader.ReadChars

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ReadChars(Count: Integer): TCharArray; virtual;

C++

virtual System::DynamicArray<System::WideChar> __fastcall ReadChars(int Count);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TBinaryReader

Description

Reads a number of character from the stream. ReadChars reads Count characters from the underlying stream and advances into the stream. The method returns the characters into a char array (TCharArray).

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