The function _______ is used to close a file. 

  • fstream 
  • read 
  • close 
  • write
The close function is used in conjunction with file streams in C++ to close an open file. It's crucial to close files after operations to release system resources and ensure that all changes, if any, are flushed and saved appropriately to the file system.
Add your answer
Loading...

Leave a comment

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