Re: Exception to catch when reading a file and when application is crashing
Posted By:
Michael_Wax
Posted On:
Thursday, April 19, 2001 09:19 PM
At the least, you need to catch the IOException declared by readLine, or your application won't compile. For debugging, you might want to wrap the file read operation in a try block and catch Throwable, i.e., everything, and see what exception is being generated by the corrupt file.