stdioFile
The default constructor does not open a file but rather sets m_hFile to file::hFileNull.
stdioFile( )
stdioFile( LPCTSTR lpszFileName, UINT nOpenFlags )
EX1
void stdioFile_stdioFile_ex1() { //Create a new standard I/O file. //Get the origin folder path. string strOriginPath; strOriginPath = GetAppPath() + "OriginC"; string strFile = strOriginPath + "\\test.txt"; stdioFile ff(strFile, file::modeCreate | file::modeReadWrite); }
Creates a stdioFile object and opens the file having the path specified by the parameter lpszFileName. This constructor combines the functions of the default constructor stdioFile() and the Open member function. An exception is thrown if an error occurs while opening the file. Depending on the severity of the error, the user should be alerted by an exception handler.
origin.h