Exception Handling and I/O
Write a program that accepts a comma delimited text file and produces an html file with an ordered list. Data separated by a comma in the input file appears in separate list items in the output file
- The user should specify the input file and a special word.
- Output should be saved to an html file as specified by the user.
- The special word is not valid in the list. Its occurrence should throw an InvalidWordException.
- All exceptions that may be thrown should be caught by your code.
Log exceptions that occur during runtime. Among them is the InvalidWordException. Others may occur as well. The log file should include:
- When did the exception occur?
- Where did it occur?
- What is the name of the exception?
... and whatever other information you think would be useful to system administrators.