C++ read(),write() ,seekg(),tellg()
istream &seekg(streamoff offset,seek_dir origin);pos_type tellg() 返回流置针所在的位置,返回值为整数从文件origin位置开始移动offset个字节读写数据块要读写二进制数据块,使用成员函数read()和write()成员函数,它们原型如下:read(unsigned char *buf,int num);write(const unsigned char *buf,int num)...