Advertisements
Advertisements
Question
If we open an existing file in the ______ mode the previous data will be erased and the file object will be positioned at the beginning of the file.
Options
read
append
write
append and write
MCQ
Fill in the Blanks
Solution
If we open an existing file in the write mode the previous data will be erased and the file object will be positioned at the beginning of the file.
shaalaa.com
Writing to a Text File
Is there an error in this question or solution?