Use this member function in conjunction with the default CFile constructor as a "safe" method for opening a file where a failure is a normal, expected condition.
virtual BOOL Open( LPCTSTR lpszFileName, UINT nOpenFlags, CFileException* pError = NULL );
Header File | Afx.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
You can use the Cfile::Open member function to open files in the Windows CE object store.
CFile Overview, CFile Member Functions, File Service Classes, CFile::CFile, CFile::Close