You are viewing a single comment's thread. Return to all comments →
But the input is being given line by line. How can you say it will search for EOF? It keeps on asking for input!!!
I had also the same question, I could not find any easy explenation over net.
You can use a while loop to look for it
If there is no next line it will terminate the loop