Multiple choice
Predict the result if a program opens an existing file named log.txt with mode w and writes one new line into it.
A
The old text stays and the new line is added at the end
B
The file is emptied and only the new line remains
C
The program stops with an error because the file already exists
D
The new line is written at the start and the old text follows
Pick an answer to check
