java写文件(不覆盖原内容)
String destStr = new String();destStr = date.getDate() + str + "\n";java.io.FileWriter fw = new java.io.FileWriter("C:\\Log.txt", true);java.io.PrintWriter pw = new java.io.PrintWriter(fw);pw.println(destStr);pw.close();fw.close();