我目前使用FileWriter来创build和写入文件。 有没有什么办法,我可以每次写入同一个文件,而不删除那里的内容? fout = new FileWriter( "Distribution_" + Double.toString(_lowerBound) + "_" + Double.toString(_highBound) + ".txt"); fileout = new PrintWriter(fout,true); fileout.print(now.getTime().toString() + ", " + weight + ","+ count +"\n"); fileout.close();