fixed outfile = new File(), outfile.printf()