When dealing with file I/O, the _______ statement is often used to ensure that the file is properly closed after its suite finishes.

  • close
  • open
  • try-finally
  • with
When dealing with file I/O, the try-finally statement is often used to ensure that the file is properly closed after its suite finishes, even if an exception is raised.
Add your answer
Loading...

Leave a comment

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