Here you can find the source of load(final String folder, final String fileName)
Parameter | Description |
---|---|
fileName | a parameter |
Parameter | Description |
---|---|
IOException | an exception |
public static Properties load(final String folder, final String fileName) throws IOException
//package com.java2s; //License from project: Apache License import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.Properties; public class Main { /**/*from ww w . j av a 2 s . co m*/ * @param fileName * @return * @throws IOException */ public static Properties load(final String folder, final String fileName) throws IOException { final Properties properties = new Properties(); try (InputStream in = new FileInputStream(new File(folder, fileName))) { properties.load(in); } return properties; } }