現在FileWriter
、ファイルの作成と書き込みに使用しています。そこの内容を削除せずに毎回同じファイルに書き込む方法はありますか?
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();