Solved

If You Attempt to Open a File with the Open

Question 6

Multiple Choice

If you attempt to open a file with the Open file mode, what happens if the file does not exist?


A) The file is created and then opened for use.
B) The program returns a prompt to the user asking if the file should be created.
C) The program will return a null object, and all data written to the file will be discarded.
D) The program throws a System.IO.FileNotFoundException error.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions