By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,853 Members | 2,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,853 IT Pros & Developers. It's quick & easy.

Hello can someone verify my answer?

P: 2
which of th following must be done before any other opereations can be performed on a file (other than stdin, stdout and stderr)?
1. fseek
2. fopen
3. fgets
4. rewind
Aug 7 '07 #1
Share this Question
Share on Google+
1 Reply


gpraghuram
Expert 100+
P: 1,275
which of th following must be done before any other opereations can be performed on a file (other than stdin, stdout and stderr)?
1. fseek
2. fopen
3. fgets
4. rewind
HI,
First of all u have to open the file using fopen call.
You shuld open the file in such away which is required by the logic of ur code.
Ur logic alond determines whether u have to do fseek/rewind etc.

Raghuram
Aug 7 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.