Here you can find the source of loadPropertiesFile(String propFilePath)
public static Properties loadPropertiesFile(String propFilePath) throws IOException
//package com.java2s; //License from project: Apache License import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.Properties; public class Main { public static Properties loadPropertiesFile(String propFilePath) throws IOException { try (InputStream input = new FileInputStream(propFilePath)) { return loadPropertiesStream(input); }// w ww . java2 s . c om } public static Properties loadPropertiesStream(InputStream input) throws IOException { Properties prop = new Properties(); prop.load(input); return prop; } }