Update FileApp.java

Use try-with-resources (since JavaSE7)