Java 读写 Properties 文件,javaproperties,//读操作Propert
分享于 点击 31047 次 点评:145
Java 读写 Properties 文件,javaproperties,//读操作Propert
//读操作Properties properties = new Properties(); try{ properties.load(new FileInputStream("filename.properties")); } catch (IOException e) { // implement catch logic}//写操作Properties properties = new Properties();try{ properties.store( new FileOutputStream("filename.properties"), null);} catch (IOException e) { // implement catch logic}
用户点评