I'm trying to read from a text file multiple times but I only seem to be able to read the data once. Any advice would be greatly appreciated.
string input;
while (!ifile.eof())
{
getline(ifile,input);
cout << input << endl;
}
while (!ifile.eof())
{
ifile.get(ch);
cout << ch;
}