Can any body tell me the difference between file descriptor and filepointer in C on linux? and when to use what?
varsha0702
0
Newbie Poster
Recommended Answers
Jump to PostThe 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 Replies
Reply 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, networking, learning, and sharing knowledge.