A programmer wants to add a new line of text to the end of an existing file…
2026
A programmer wants to add a new line of text to the end of an existing file named logs.txt without deleting the current content. Which mode should they use in the open() function?
Answer: C. a
- A.
r
- B.
w
- C.
a
- D.
x
Attempted by 387 students.
Show answer & explanation
Correct answer: C
Loading lesson…