Here you can find the source of loadSettings(String propertiesFileName)
public static void loadSettings(String propertiesFileName) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.Properties; public class Main { private static final String HOME_DIR = System.getProperty("user.home"); public static final Properties PROGRAM_SETTINGS = new Properties(); public static void loadSettings(String propertiesFileName) throws IOException { File propertiesFile = new File(HOME_DIR + File.separator + propertiesFileName); if (propertiesFile.exists()) { PROGRAM_SETTINGS.load(new FileInputStream(propertiesFile)); }//from www .j a va2s . co m } }