int main(int argc, char* argv[]) { CFileStream stream; stream.open("./test.txt","wb+"); stream.write("aaa", 3); stream.close(); return 0; }
void CMedalCfgMgr::LoadConfigFromFile() { std::string strFileName( g_sPath ); strFileName.append( MEDAL_FILE_NAME ); CFileStream file; file.open( strFileName.c_str(), "rb" ); LoadMedalConfigFromFile( file ); LoadProgressConfigFromFile( file ); file.close(); }