Chapter 12: Problem 10
What arguments do you pass to a file stream object’s write member function?
Short Answer
Expert verified
Answer: The write member function of a file stream object requires two arguments: a pointer to the data block to be written ('const char* buffer') and the size of the data block in bytes ('streamsize size'). The 'buffer' argument is a constant pointer to the array of characters that needs to be written to the file, and 'size' specifies the number of bytes (characters) of the data block that should be written.