往已有.txt文件中追加新内容的代码!
------解决方案--------------------------------------------------------
- Java code
FileWriter fw=new FileWriter(file,true);或者FileOutputStream fos=new FileOutputStream(file,true);
FileWriter fw=new FileWriter(file,true);或者FileOutputStream fos=new FileOutputStream(file,true);