必给高分求救:怎样用JAVA实现在文本文件中搜索一个字符串?详情见内! indexOf(String, int)看看!看看API怎么用的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用Properties类FileInputStream lProFile = new FileInputStream(rCfgFile); Properties lProp=new Properties(); lProp.load(lProFile); lProFile.close(); 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");//store the modifyFileOutputStream out = new FileOutputStream("www.txt");applicationProps.store(out, "---No Comment---");out.close(); SH的问题,大家来帮忙看看 打开有applet小程序的页面出现内存不能为read 这样能进行时间比较吗 求教 各位 高手 一个 关于JAVA 游戏屏幕 的问题 一个老问题,但还是没解决 界面显示不了 询问关于绘图函数的使用 高分求救高手 关于System的setProperty/getProperty等问题(在线等待。。。。) 请问怎么把int[]传给anyType[] 大虾路人甲:你的方法我已经用过,十分感谢!但是我怎样才能检索?请见里面! 我的.class文件只有拷贝到 jdk\bin\目录下才能正确执行
FileInputStream lProFile = new FileInputStream(rCfgFile);
Properties lProp=new Properties();
lProp.load(lProFile);
lProFile.close();
// 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");
//store the modify
FileOutputStream out = new FileOutputStream("www.txt");
applicationProps.store(out, "---No Comment---");
out.close();