public File createFileObject (File dir, String filename)

Returns a File object constructed in dir from the given filename.