感谢各位给给指点一二

解决方案 »

  1.   

    你往文件写东西要用到FileWrite类。
    FileWriter(File file, boolean append) 
    Constructs a FileWriter object given a File object我想你看这知道怎么用了吧!
      

  2.   

    用java.io.RandomAccessFile中的length() 和seek(long pos)方法
      

  3.   

    用 RandomAccessFile的
    seek()和length();
      

  4.   

    RandomAccessFile类
    seek(long pos)方法为指向指定位置write(byte b[], int off, int len):
    write(mybyte,0,1024);意思是在文件的pos位置处(注意这里的0不是指从文件开头,而是指从指定位置开始),写入长度为1024的mybyte数组的数据。
      

  5.   

    tjl713(tjl) 说的对,把FileWriter(File file, boolean append) 中的append设为true就可以了