Hi. Just wondering what the main differences between a file pointer and a file
descriptor are.
I know that a the FILE struct keeps info on the file stream in use. Correct?
But doesn't a file descriptor do similar?
I mean, if the read() reads 1024 bytes from fd, and then does another call to the
same descriptor, it will begin in the file where the last read() left off. Similar to
how FILE *fp works?
Code:
int fd;
nread = read(fd, buf, 1024);
thanks :)