System.Classes.TTextReader.Peek

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Peek: Integer; virtual; abstract;

C++

virtual int __fastcall Peek() = 0 ;

Properties

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

Description

Read character without changing TTextReader state.

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.

See Also

Code Examples