Update FileToObject.java

few changes