Share via


PTextReader.Peek Method

Definition

Reads the next character without changing the state of the reader or the character source. Returns the next available character without actually reading it from the input stream.

public:
 override int Peek();
public override int Peek ();
override this.Peek : unit -> int
Public Overrides Function Peek () As Integer

Returns

The next character to be read, or -1 if no more characters are available or the stream does not support seeking.

Exceptions

An I/O error occurs.

Applies to