Question: If a program does not include exception handling, what will happen when a data file is opened with the StreamReader object and the file does

If a program does not include exception handling, what will happen when a data file is opened with the StreamReader object and the file does not exist?
A file will be created.
The next available file on the disk will be opened.
A dialog box will automatically appear allowing the user to find the correct name or location of the file.
An unhandled exception will occur, causing the program to fail.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!