.NET FAQs Unleashed!
 
    
    

What is the use of the peek() method of the TextReader class?

The peek() method of the TextReader class returns the next character with reference to the current character, without actually moving to the next character. In case -1 is returned, it means that the reference is currently at the last character of the string.



More Interview Questions...