Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


Visual Studio 6.0

istream& read( char* pch, int nCount );

istream& read( unsigned char* puch, int nCount );

istream& read( signed char* psch, int nCount );


pch, puch, psch

A pointer to a character array.


The maximum number of characters to read.


Extracts bytes from the stream until the limit nCount is reached or until the end of file is reached. The read function is useful for binary stream input.

istream OverviewInput Stream Classes

See Also   istream::get, istream::getline, istream::gcount, istream::ignore

© 2015 Microsoft