有两种方法:
1)RandomAccessFile fd = new RandomAccessFile(file,”rw”);
fd.seek(fd.length());
然后使用 fd 的method写入
2)使用FileOutputStream(String name,boolean append) throws IOException这个 constructor

有两种方法:
1)RandomAccessFile fd = new RandomAccessFile(file,”rw”);
fd.seek(fd.length());
然后使用 fd 的method写入
2)使用FileOutputStream(String name,boolean append) throws IOException这个 constructor