Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package util;
- import java.io.File;
- import java.io.FileInputStream;
- import java.util.Properties;
- public class Util {
- public static Properties getProperties(String path){
- File file = new File(path);
- if (!file.exists()) return null;
- Properties properties = new Properties();
- try{
- FileInputStream in=new FileInputStream(file);
- properties.load(in);;
- in.close();
- } catch (Exception e){
- e.printStackTrace();
- }
- return properties;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement