Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string INI::OpenFile( string strFile )
- {
- fstream myfile;
- string strtemp;
- string strfile;
- wstring wstrFile = wstring( strFile.begin(), strFile.end() );
- const wchar_t * strfiletemp = wstrFile.c_str();
- myfile.open( strfiletemp, ios::in );
- if ( myfile.is_open() )
- {
- while( !myfile.eof() )
- {
- myfile >> strtemp;
- cout << strtemp;
- strfile += strtemp + '\r';
- }
- myfile.close();
- }
- return strfile;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement