In C#, what happens if you attempt to read from a file that does not exist using File.OpenRead() method?
A. FileNotFoundException is thrown
B. DirectoryNotFoundException is thrown
C. FileLoadException is thrown
D. IOException is thrown
Answer: Option A
Join The Discussion