create a method that accepts an IOException as an
(Not rated)
(Not rated)
modify the ProductTextFile class so that it writes exceptions to a text file named errorLog.txt instead of printing them to the console. To accomplish this I need to add a method named printToLogFile that accepts the IOException as an argument and it needs to append two records to the log file: one that indicates date and time of the exception and one that contains the information of the exception.
12 years ago
Solution
NOT RATED
Purchase the answer to view it

- producttextfile_answer.zip
- products.txt