File-Handling Tasks

HomeOverviewDetails

In addition to run-time library file-handling routines and Win32 API file-handling routines, Visual C++ supplies MFC class CFile and several derived classes, such as CStdioFile for text files. Use CFile in your MFC programs.

For more information about alternatives to MFC file handling, see File Handling in the Run-Time Library Reference and File I/O in the Platform SDK.

For information about derived CFile classes, see the MFC hierarchy chart.

What do you want to do?

Use CFile

Use MFC Serialization (Object Persistence)

See Also   CArchive, CObject