User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 456,450 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,597 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser: Programming Forums
Views: 1630 | Replies: 2
Reply
Join Date: Nov 2007
Posts: 18
Reputation: varsha0702 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
varsha0702 varsha0702 is offline Offline
Newbie Poster

Question What is difference between file descriptor and file pointer

  #1  
Nov 24th, 2007
Can any body tell me the difference between file descriptor and filepointer in C on linux? and when to use what?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2005
Posts: 3,834
Reputation: Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of 
Rep Power: 23
Solved Threads: 436
Colleague
Salem's Avatar
Salem Salem is offline Offline
banned

Re: What is difference between file descriptor and file pointer

  #2  
Nov 24th, 2007
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().
Reply With Quote  
Join Date: Nov 2007
Posts: 18
Reputation: varsha0702 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
varsha0702 varsha0702 is offline Offline
Newbie Poster

Re: What is difference between file descriptor and file pointer

  #3  
Nov 24th, 2007
Thanx.. A alot for u r quick reply..
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C Forum

All times are GMT -4. The time now is 1:58 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC