Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string f = "server_mods.txt";
- string str;
- ifstream file;
- file.open(f);
- if (file.is_open())
- {
- while (!file.eof())
- {
- file >> str;
- cout << str << endl;
- // getline() не работает, все так же
- // по символьно через char* тоже не робит
- }
- }
- else
- {
- cout << "Error, when opening file!" << endl;
- }
Add Comment
Please, Sign In to add comment