The information in this article applies to:
SUMMARYThe Microsoft Foundation Classes (MFC) provide a CFileException class. The CFileException class includes public data members that contain operating- system errors and C Run-time errors that may be generated by certain file operations. MORE INFORMATION
The CFile and CStdioFile classes may throw a CFileException when certain
error conditions occur; however, these classes do not throw a
CFileException when the end of file is reached. If an application using the
CFile or CStdioFile class needs to check for the end-of-file condition when
reading from a file, the return values from the Read() and ReadString()
member functions should be checked. Additional query words: EOF TRY CATCH
Keywords : kbFileIO kbMFC kbVC100 kbVC150 kbVC200 kbVC400 kbGrpMFCATL |
Last Reviewed: November 25, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |