Q. Which of the following statements are true? (Solved)
1. when you open a file for reading, if the file does not exist, an error occurs
2. when you open a file for writing, if the file does not exist, a new file is created
3. when you open a file for writing, if the file exists, the existing file is overwritten with the new file
4. all of the mentioned
- d. all of the mentioned