jodd-core/src/main/java/jodd/util/PropertiesUtil.java
public static void writeToFile(final Properties p, final File file) throws IOException {
		writeToFile(p, file, null);
	}
public static void writeToFile(final Properties p, final File file) throws IOException {
		writeToFile(p, file, null);
	}
public static void writeToFile ( final Properties p , final File file ) throws IOException { writeToFile ( p , file , null ) ; }
Writes properties to a file.

@param p      properties to write to file
@param file   destination file
Writes properties to a file .