Here you can find the source of saveUserSettings(Properties properties)
private static void saveUserSettings(Properties properties)
//package com.java2s; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.Properties; public class Main { private static void saveUserSettings(Properties properties) { String filename = System.getProperty("user.home") + File.separator + ".RacePoint.xml"; OutputStream out = null;//from w w w . jav a 2 s. c o m try { out = new FileOutputStream(filename); BufferedOutputStream outBuf = new BufferedOutputStream(out); properties.storeToXML(outBuf, "User settings for RacePoint"); outBuf.close(); } catch (IOException e) { } finally { if (out != null) { try { out.close(); } catch (IOException e) { } } } } }