while () { if (eof FH) { # has read for the last time } }