Call this member function to get a pointer to a CFile object.
virtual CFile* GetFile( LPCTSTR lpszFileName, UINT nOpenFlags, CFileException* pError );
A string that is the path to the desired file. The path may be relative or absolute.
A pointer to an existing file-exception object that indicates the completion status of the operation.
Sharing and access mode. Specifies the action to take when opening the file. You can combine options listed in the CFile constructor CFile::CFile by using the bitwise OR (|) operator. One access permission and one share option are required; the modeCreate and modeNoInherit modes are optional.
A pointer to a CFile object.