摘要:
import java.io.*;public class AppendContent{ public static void main(String[] args) { try(RandomAccessFile raf = new RandomAccessFile("out2.txt", "rw")) { raf.seek(raf.length()); raf.write("追加的内容! \r\n".getBytes()); } catch (IOException ex) ... 阅读全文