code: public static void writeProperties2File(final String filename, final Properties properties)
  		throws IOException
  	{
  		// Write properties to the file.
  		try (FileOutputStream fos = new FileOutputStream(filename))
  		{
  			properties.store(fos, null);
  		}
  	}
docs: The Method writeProperties2File(String, Properties) writes the Properties to the file.
  
  @param filename
  The filename from the file to write the properties.
  @param properties
  The properties.
  @throws IOException
  Signals that an I/O exception has occurred.