Hmm i'm having a simple end of file problem... here's my code
ifstream file;
file.open("test.txt");
while ( !file.eof() )
{
file.getline(temp_value, 30);
cout << temp_value;
file.getline(temp_value, 15);
cout << temp_value;
}
file.close();
this really isn't my code but is just the basis of it.. anyways this code should keep getting lines from file and displaying them unless file is empty right? But when i run my program it just loops forever it never quits the loop... and i only have 4 lines in
test.txt..... any ideaS?