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

@param p        properties to write to file
@param fileName destination file name
@param header   optional header