Which of the following statements is not correct regarding the opening modes of a file?
a. When you open a file for writing; 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 reading; if the file does not exist, an error occurs
d. When you open a file for writing; if the file exists, the existing file is overwritten with the new data.