Now that I look again I see that as it is you need to add the code to read from the filestream
I think you misread again:
Now what happens if you use your read statement as the while loop conditional. The read statement returns the filestream object after it executes, so your while statement becomes:

while(myInputFile)
----

For example, if the file is terminated with a newline and you are reading with getline, then the last call to getline will succeed, but neither failbit nor eofbit will be set despite the fact that the file stream is empty.
Gotcha.