while(myfile)
{getline(myfile,myline);
cout << myline << '\n';
}
system("pause");
while(myfile)
{getline(myfile,myline);
cout << myline << '\n';
}
system("pause");
Dobry den, prosim proc vypisuje ten string 2x?
ifstream myfile;
myfile.open("json.txt");
string myline;
while(myfile)
{getline(myfile,myline);
cout << myline <<
;
}
system("pause");
Dekuji