You simply must handle IOExceptions, even if handling consists only of printing an error message to a log file or console where you'll notice it.
Paul Clapham wrote:By the way it would help if you used the "Code" tags around your code, and indented it. You could even edit your post and do that now. It would be much easier for people to read then.
I did that just now, so remember to do it yourself next time, and forever after :-)