From Cppreference
|
basic_istream &read(char_type *s, streamsize count);
|
|
|
|
|
Extracts characters from stream.
If good() != true, setstate(failbit) is called and the function returns. At most count characters are extracted. If end-of-file is encountered earlier, setstate(eofbit is called and the function returns.
[edit] Parameters
s
|
-
|
pointer to the character string to store the characters to
|
count
|
-
|
number of characters to read
|
[edit] Return value
*this
[edit] Example
[edit] See also
|
|
extracts formatted data (public member function)
|
|
|
extracts already available blocks of characters (public member function)
|
|
|
extracts characters (public member function)
|
|
|
extracts characters until the given character is found (public member function)
|