Q.

Which of the following statements are true?

A. when you open a file for reading, if the file does not exist, an error occurs
B. when you open a file for writing, if the file does not exist, a new file is created
C. when you open a file for writing, if the file exists, the existing file is overwritten with the new file
D. all of the mentioned
Answer» D. all of the mentioned
Explanation: the program will throw an error.
2.2k
0
Do you find this helpful?
15

Discussion

No comments yet