What mode should you open a file in to write to it without deleting its existing content?

  • append mode
  • create mode
  • update mode
  • write mode
To write to a file without deleting its existing content, you should open the file in 'write mode' ('w'). It creates a new file if it doesn't exist.
Add your answer
Loading...

Leave a comment

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