Which method will you use to write a single character to the file stream in C++? 

  • put() 
  • write() 
  • insert() 
  • push()
The put() method is used to write a single character to a file stream in C++. The write() method is typically used to write blocks of binary data, while insert() and push() aren't standard methods for this purpose in C++ streams.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *