0
我必须检查一个文本文件是否存在或不存在,然后我必须替换一个字母,说一个到o。我已经完成了第一部分如何更换炭文件java替换字符
class FDExists{
public static void main(String args[]){
File file=new File("trial.java");
boolean exists = file.exists();
if (!exists) {
System.out.println("the file or directory you are searching does not exist : " + exists);
}else{
System.out.println("the file or directory you are searching does exist : " + exists);
}
}
}
这个我已经做
是否想用'o'替换'a'到文件中?或在文件名? – 2010-10-15 09:31:28
里面的文件。我的意思是在数据中 – Sumithra 2010-10-15 09:34:30