Ok, I want to look through lines in a .txt file. I know how to search for a certain file. How would I scan a single line until eof?
this reads in a line of code until the end of the line
getline(fin, str, '\n');
reads only a single line........
i just wrote this up.. hope it helps
cout << "What file do you want to display?\n";
cin.getline(filename, 30, '\n');
file.getline(text1, 5000, '\n');
cout << text1;
cout << "\n";