BUG: istream::readsome Does Not Read Correctly on File Stream (246934)
This article was previously published under Q246934
SYMPTOMS
The istream::readsome function does not read correct data from a file.
CAUSE
The basic_istream::readsome function has some limitations when used on certain streams. Moreover, the MSDN documentation for basic_istream::readsome states that internally basic_istream::readsome calls the read function. However, in the basic_istream::readsome implementation, the read function is never called.
RESOLUTION
Give preference to basic_istream::read.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: |
Major |
Last Reviewed: |
7/30/2001 |
Keywords: |
kbbug KB246934 |
|