1。追加文件方法
1.java.io.FileWriter 的構造函數中:
FileWriter(File file, boolean append) Constructs a FileWriter object given a File object.
append
- if true
, then bytes will be written to the end of the file rather than the beginning
2.類java.io.RandomAccessFile extends Object implements DataOutput, DataInput 中方法
seek(long pos)將當前操作指針移到文件末尾。
2.關于隔行寫入文件java.io.BufferedWriter類中的方法newLine()