home *** CD-ROM | disk | FTP | other *** search
- Use the eof() member function to check if you have reached the end
- of a file that is attached to a stream. In this example,
- source.eof() returns zero if you have not reached the end of the
- file that is attached to the stream object source. When the end
- of the file is reached, source.eof() returns a nonzero value and
- the while loop exits.
-