java.io.RandomAccessFile long length()
Returns the length of this file. void seek(long pos) void seek(long pos)
Sets the file-pointer offset, measured from the beginning of this file, at which the next read or write occurs.
Returns the length of this file. void seek(long pos) void seek(long pos)
Sets the file-pointer offset, measured from the beginning of this file, at which the next read or write occurs.
过来写到第二个文件。
如果你是连第二个文件都不准用的话,那要把你的文件全部读入内存才行了。