Forced opened files to be java.io.File class