std::ifstream::readsome not reading requested number of chars from stream. (solved)

Howind, Axel howind@4com.de
Fri May 11 09:28:00 GMT 2007


I just found the answer in the standard draft...

    streamsize readsome(char_type* s, streamsize n);
    ...
    - If rdbuf()->in_avail() > 0, extracts min(rdbuf()->in_avail(),n)). 

Sorry for posting, my books weren't that clear about this.

Axel



More information about the Libstdc++ mailing list