I see. Then is there some way to recognize when the istream encounters no more data; other than by using EOF (which I just read doesn't really work the way the name implies)?