LineNumberReader lnr = null;
String strContent = null;
while((strContent = lnr.readLine()) != null){
if(strContent.equals("判断信息")){
strContent = "替换值";
}
//写到临时文件或保存在内存中
}
String strContent = null;
while((strContent = lnr.readLine()) != null){
if(strContent.equals("判断信息")){
strContent = "替换值";
}
//写到临时文件或保存在内存中
}
能不能给我稍微完整点的例子啊!
真的非常感谢大家!
RandomAccessFile