Threaded Discussion Instructions
Review the threaded discussion question posted by the course faculty. You are required to submit at least two (2) responses to this question by 11:59pm EST on Sunday. The first response should be to the faculty; the second response can be directed either to the faculty or to other students in the class. Your responses should be substantive, and reflect analytical and critical thinking skills, as well as, a thorough understanding of your reading assignment. A typical response should consist of 100-150 words in a single-spaced format. Refer to the TDQ Rubric below for more guidance on how to respond.
Write and evaluate an Exception Handler
In a textbox on your form, you ask the user to enter a file name, so that the program can open that file and display it in a TextBox or RichTextBox. There are a number of ways this can end badly, such as:
- User incorrectly spells file name (or the file doesn’t exist.)
- User enters no path or the wrong path to the file.
- The file is on a CD and the CD door is open.
- The file is on a network and access is denied.
Evaluate the possible exceptions that you might handle, then design and write as much code as you can that will attempt to minimize the possibility of a system crash in this situation.