使用J2SE API读取Properties文件的六种方法
使用J2SE API读取Properties文件的六种方法
1。使用Java.util.Properties类的load()方法
示例:
InputStream in = lnew BufferedInputStream(new FileInputStream(name));
Properties p = new Properties();
p.load(in);
使用J2SE API读取Properties文件的六种方法
1。使用Java.util.Properties类的load()方法
示例:
InputStream in = lnew BufferedInputStream(new FileInputStream(name));
Properties p = new Properties();
p.load(in);