Home Cooker Classes Others Rice CookerGX
Classes  >  reader  >  Peek()
reader class : Peek() method

Description

Returns a next available character.

Syntax

readerInstance.Peek()

Arguments

None

Return value

ClassDescription
intA next available character.

Sample code

//anyReader is an any instance of reader type.

int next = anyReader.Peek();

Notes

It's a wrapper of the System.IO.StreamReader.Peek().

Returns an integer that represents the next character. If returns -1, there is not a next character or the stream does not support seeking .

The current position of the reader is not changed by Peek().

Links for reference

Copyright © Rice All rights reserved.