Advertisements
Advertisements
Question
Which of the following mode keeps the file offset position at the end of the file?
Options
r+
r
w
a
MCQ
Solution
a
Explanation:
The text is inserted at the end of the file using append-only mode (a). The handle appears at the end of the file when it is opened in Python's append mode.
shaalaa.com
Text File Open Modes
Is there an error in this question or solution?