如果使用的是 BufferedWriter 或 PrintWriter ,也是需要在構建 new FileWriter 類時多設定一個 append 的引數為 true ,實現程式碼如下:
確定! 回上一頁