Q26
In C#, what happens if you attempt to read from a file that does not exist using File.OpenRead() method?
A.
FileNotFoundException is thrown
AnswerB.
DirectoryNotFoundException is thrown
C.
FileLoadException is thrown
D.
IOException is thrown
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board