对于C++的二进制文件流,有常用的四个成员函数。 其中,对于输入流操作:seekg() 与 tellg() 对于输出流操作:seekp() 与 tellp() seek用于移动指针,tell用于返回当前指针的位置。