Here you can find the source of loadUserSettings()
private static Properties loadUserSettings()
//package com.java2s; import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.Properties; public class Main { private static Properties loadUserSettings() { String filename = System.getProperty("user.home") + File.separator + ".RacePoint.xml"; Properties result = new Properties(); InputStream in = null;/*from w ww .j ava2s . c o m*/ try { in = new FileInputStream(filename); BufferedInputStream inBuf = new BufferedInputStream(in); result.loadFromXML(inBuf); inBuf.close(); } catch (IOException e) { result = new Properties(); } finally { if (in != null) { try { in.close(); } catch (IOException e) { } } } return result; } }