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