Here you can find the source of loadProperties(String sFile)
Parameter | Description |
---|---|
sFile | String path file sumber |
public static Properties loadProperties(String sFile)
//package com.java2s; //License from project: Open Source License import java.io.FileInputStream; import java.io.IOException; import java.util.Properties; public class Main { /**/* w w w .ja v a 2 s. c o m*/ * Me-load file properties * @param sFile String path file sumber * @return Objek Properties */ public static Properties loadProperties(String sFile) { Properties p = new Properties(); try { FileInputStream in = new FileInputStream(sFile); p.load(in); // System.out.println("File berhasil di-load....."); in.close(); } catch (IOException ex) { System.out.println(ex.getMessage()); } return p; } }