C++ read(),write() ,seekg(),tellg() 2020年9月4日 10:00:53Linux大全评论648 views阅读模式 istream &seekg(streamoff offset,seek_dir origin); pos_type tellg() 返回流置针所在的位置,返回值为整数 从文件origin位置开始移动offset个字节 读写数据块 要读写二进制数据块,使用成员函数read()和write()成员函数,它们原型如下: read(unsigned char *buf,int num); 点赞 登录收藏 https://www.qieseo.com/176681.html 复制链接 复制链接