Answer the question
In order to leave comments, you need to log in
How to install prebuilt code in Visual Studio 2017 template?
Hello.
There is a code
#include <iostream>
#include <string>
#include <fstream> // std::ofstream
using namespace std;
int main()
{
ifstream in("game.log");
while (!in.eof())
{
string str;
getline(in, str);
if (str.find("score") != string::npos)
{
cout << str.c_str() << "\n";
}
}
in.close();
string buff;
cin >> buff;
return 0;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question