Quote Originally Posted by Philip Nicoletti View Post
As you discovered, eof() does not become true untill you actually
attempt a read past the eof.

The normal way is to put the read in the "while" statement (much cleaner
than the peek()) ...
Code:
while (getline(myStream, tempString[a]))
{
    //process the line
}
Thanks