大虾路人甲:你的方法我已经用过,十分感谢!但是我怎样才能检索?请见里面! String lName = "sss";String lValue = (String) lProp.getProperty(lName);gSysVariables.put(lName, lValue+",ddd"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 something like:// create and load propertiesProperties applicationProps = new Properties();FileInputStream in = new FileInputStream("www.txt");applicationProps.load(in);in.close();String lName = "sss";String lValue = (String) applicationProps.getProperty(lName);applicationProps.put(lName, lValue+",ddd");FileOutputStream out = new FileOutputStream("www.txt");applicationProps.store(out, "---No Comment---");out.close(); 新手求解 java如何获取当前时间,最好语句少一点的 为什么在关闭connection或statement之后要设为 null ? java开源只开了api的代码,native方法和jvm代码没有开源吧? 小小命令的困惑.............. 怎么在火狐浏览器下运行applet jar包 一个基础的JAVA问题,关于传值和传引用 关于数据的存储 求助哪个方法 可以得到数据库总的记录数 面试问题,熟悉XML的朋友进来看看,说说,谢谢各位参与,参与有分 一问题,关于构造函数继承的 不能运行HELLOWORLD为什么?? 必给高分求救:怎样用JAVA实现在文本文件中搜索一个字符串?详情见内!
// create and load properties
Properties applicationProps = new Properties();
FileInputStream in = new FileInputStream("www.txt");
applicationProps.load(in);
in.close();
String lName = "sss";
String lValue = (String) applicationProps.getProperty(lName);
applicationProps.put(lName, lValue+",ddd");
FileOutputStream out = new FileOutputStream("www.txt");
applicationProps.store(out, "---No Comment---");
out.close();