cppreference.com > C++ I/O > write
write
Syntax:
  ostream &write( const char *buffer, streamsize num );

The write() function is used with output streams, and writes num bytes from buffer to the current output stream.