RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTextReader.Peek Method

Read character without changing TTextReader state.

Pascal
function Peek: Integer; virtual; abstract;
C++
virtual __fastcall int Peek() = 0;

Peek reads a character without changing the state of the TTextReader or data source. Subsequent reads occur as if the Peek didn't happen. 

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

 

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