add features in file.java

more features in file.java