解决方法
使用
RandomAccessFile应该可以很容易地实现这一点.以下内容应该有效:
String filename; RandomAccessFile myFile = new RandomAccessFile(filename,"rw"); // Set write pointer to the end of the file myFile.seek(myFile.length()); // Write to end of file here