RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTextReader.Read Method ()

Read character data, advancing pointer.

Pascal
function Read: Integer; virtual; abstract; overload;
function Read(const Buffer: TCharArray; Index: Integer; Count: Integer): Integer; virtual; abstract; overload;
C++
virtual __fastcall int Read() = 0;
virtual __fastcall int Read(const TCharArray Buffer, int Index, int Count) = 0;

Read reads data from the input source and advances the data pointer to the source, unlike Peek

This method is functionally identical to the Microsoft .NET method TextReader.Read

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!