Can any body tell me the difference between file descriptor and filepointer in C on linux? and when to use what?
Jump to Post
The descriptor is what is returned by open() and passed to close(), read(), write() etc.
It is what identifies the open file.
The filepointer is the location within the file where the next read/write operation will take place.
You can modify it by using say lseek().
All 3 RepliesReply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.