文件操作(偏移量)

通过函数lseek可以改变文件当前的读写位置。 函数原型:        #include <sys/types.h>        #include <unistd.h>        off_t lseek(int fd, off_t offset, int whence);   参数属性:   offset:表示从文件的whence位置开始偏移的位置大小。   whence:表示文件偏移的位
相关文章
相关标签/搜索