RandomAccessFile适用于由大小已知的记录组成的文件,所以可以使用seek()将记录从一处转移到另一处,然后读取或者修改记录。常用方法:seek()、length()、readByte()、writeByte()、close()