std::basic_ostream::write

From Cppreference

Jump to: navigation, search
basic_ostream& write( const char_type* s, streamsize count );

Writes count characters to the stream. If good() != true, setstate(failbit) is called and the function returns. If inserting fails, setstate(badbit) is called and the function returns.

Contents

[edit] Parameters

s - pointer to the character string to write
count - number of characters to write

[edit] Return value

*this

[edit] Example

[edit] See also

operator<<
inserts formatted data
(public member function)
put
inserts a character
(public member function)