Name the method which returns integer as -1 when the end of file is encountered.
(a) int read()
(b) int ReadByte()
(c) void readbyte()
(d) none of the mentioned
The question was asked during an interview.
The origin of the question is Introduction of Stream Classes topic in section Console I/O Operations and Stream Classes of C#