io:peek From C++ Reference previous page next page peek Syntax: #include <fstream> int peek(); The function peek() is used with input streams, and returns the next character in the stream or EOF if the end of file is read. peek() does not remove the character from the stream. Related Topics: get, putback previous page start next page