...because of your while conditional: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))
This is a discussion on help needed with file I/O within the C++ Programming forums, part of the General Programming Boards category; I am not yet sure why the next line is not being read ...because of your while conditional: Code: while ...
...because of your while conditional: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.