1。 store 函数
String proFileName = dir + File.separator + "TOSconfig.properties";
InputStream in = new BufferedInputStream(new FileInputStream(
proFileName));
p.load(in);
p.setProperty(processName, num);
p.store(new FileOutputStream(proFileName),
"TOSproperties by lqt. Automatically generated, do not manually modify.");
store(OutputStream os, String description)
description参数就是出现在properties文件的最上面的注释。
例如上面的代码,对应下面的图片
2。