文件操作(偏移量)

通過函數lseek可以改變文件當前的讀寫位置。 函數原型:        #include <sys/types.h>        #include <unistd.h>        off_t lseek(int fd, off_t offset, int whence);   參數屬性:   offset:表示從文件的whence位置開始偏移的位置大小。   whence:表示文件偏移的位
相關文章
相關標籤/搜索