Advertisements
Advertisements
Question
Which of the following statements are true?
Options
When you open a file for reading, if the file does not exist, an error occurs.
When you open a file for writing, if the file does not exist, a new file is created.
When you open a file for writing, if the file exists, the existing file is overwritten with the new file.
All of the mentioned.
MCQ
Solution
All of the mentioned.
shaalaa.com
Reading from a Text File
Is there an error in this question or solution?