Home » Archives for September 18th, 2009
C++ Detecting end of file
C++ Detecting end of file:
The “eof” stands for “end-of-file”. It specifics the end of last record of the file.
The “eof” is a member function of object of ifstream (or fstream) class and it is used to detect the end-of-file. This function returns true value (or 1) if the end-of-file is reached otherwise it returns false value (or 0).
Normally...