Java 的 Properties 文件读写,javaproperties,//读操作Propert
分享于 点击 9570 次 点评:232
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}//该片段来自于http://byrx.net
用户点评