Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::ifstream config;
- config.open( std::string( GAME_DIR ) + "cfg/config.cfg", std::ifstream::in );
- if ( config.is_open() )
- {
- std::string line;
- while ( !config.eof() )
- {
- std::getline( config, line );
- AMVector< std::string > tokens;
- std::istringstream ss( line );
- std::string token;
- while ( ss >> token )
- tokens.AddToTail( token );
- for ( int32_t i = 0; i < tokens.Count(); i++ )
- printf( "%s\n", tokens[i].c_str() );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement