public static void writeToFile(final Properties p, final String fileName) throws IOException {
		writeToFile(p, new File(fileName), null);
	}
public static void writeToFile ( final Properties p , final String fileName ) throws IOException { writeToFile ( p , new File ( fileName ) , null ) ; }
Writes properties to a file.

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