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()