>From Josuttis, p. 598: After reading the last character, the flag eofbit is not yet set. The next attempt to read a character sets eofbit and failbit, because the read fails. Brad Garcia