Linijka z pliku txt.
Ostatnio zmodyfikowano 2013-12-09 19:02
Monika90 |
» 2013-12-09 16:32:44 Spróbuj tego std::ifstream file( "file.txt" ); std::string line; while( std::getline( file, line ) ) { const std::size_t i = line.find( "version=" ); if( i != std::string::npos ) { std::cout << line.substr( i + 8 ) << '\n'; break; } }
|
|
ssssss-94 Temat założony przez niniejszego użytkownika |
» 2013-12-09 19:02:05 Dziękuje. Oto właśnie chodziło.
|
|
1 2 « 3 » |