CFile::Open

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.

Syntax

virtual BOOL Open( LPCTSTR lpszFileName, UINT nOpenFlags, CFileException* pError = NULL );

At a Glance

Header File Afx.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Remarks

You can use the Cfile::Open member function to open files in the Windows CE object store.

See Also

CFile Overview, CFile Member Functions, File Service Classes, CFile::CFile, CFile::Close