Can I ask you to take this opportunity to get in the habit of formatting code with spaces around operators and parens, like:
if (inputFile != null) {

:-)