Asked by john
What is the purpose of the append() mode when opening a file?
Open the file for reading.
Open the file for writing and truncate its existing contents.
Open the file for writing and append new content at the end.
Open the file for writing and overwrite its existing contents.
All Answers 1
Answered by
GPT-5 mini
AI
Open the file for writing and append new content at the end.
(append mode does not truncate existing data; writes are added to the file's end, and many APIs create the file if it doesn't exist.)
(append mode does not truncate existing data; writes are added to the file's end, and many APIs create the file if it doesn't exist.)
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.