when have to set the eof flag?

Brad Garcia garsh@home.com
Wed Jul 25 12:54:00 GMT 2001


>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




More information about the Libstdc++ mailing list