Here you can find the source of load(String fileName)
public static Properties load(String fileName) 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 load(String fileName) throws IOException { InputStream is = null;/* w w w .j a v a2 s. c o m*/ try { Properties props = new Properties(); is = new FileInputStream(fileName); props.load(is); return props; } finally { if (is != null) { is.close(); } } } }