...because of your while conditional:Quote:
I am not yet sure why the next line is not being read
That says continue looping as long as the read fails. Since your read is a success, the loop terminates.Code:while (!getline (myfile,line))
Printable View
...because of your while conditional:Quote:
I am not yet sure why the next line is not being read
That says continue looping as long as the read fails. Since your read is a success, the loop terminates.Code:while (!getline (myfile,line))
That did it... I dunno what i was thinking.. thanks a lot to everybody...
I did not notice that when I suggested you use it earlier. Sorry about that.