L
Languageware
Guest
ifstream inFile;
inFile.open("myfile.txt");
string line;
while (getline(inFile, line));
{
cout << line << endl;
}
inFile.close();
Deletes the line of text in the file and does not display it on the screen of console application. Something is missing perhaps.
Continue reading...
inFile.open("myfile.txt");
string line;
while (getline(inFile, line));
{
cout << line << endl;
}
inFile.close();
Deletes the line of text in the file and does not display it on the screen of console application. Something is missing perhaps.
Continue reading...