RandomAccessFile文件读写

raf.write( 'A' )的写入过程:

首先,字符A在内存中是16位无符号整数0000 0000 0000 0041

其次,自劢类型转换,转为int类型0000 0000 0000 0000 0000 0000 0000 0041

最后,截取高8位,将低8位的数据写入“流”中 0000 0041

原文地址:https://www.cnblogs.com/huanjianlin/p/3046951.html