1.错误处理 - fprintf() - perror() 2.通用I/O模型 - fd = open(pathname, flags, mode) - numread = read(fd, buffer, count) - numwritten = write(fd, buffer, count) - status = close(fd) - off_t lseek(int fd, off_t offset, int whence):改变文件偏移量 - int ioctl(int fd, in…