How would you use the functions fseek(), freed(), fwrite() and ftell()?

Showing Answers 1 - 3 of 3 Answers

fread(s,i1,i2,f)  Enter i2 dataitems,each of size i1 bytes,from file f to string s.

fseek(f,1,i)   Move the pointer for file f a distance 1 byte from location i.

ftell(f)  Return the current pointer position within file f.

fwrite(s,i1,i2,f)   send i2  data items,each of size i1 bytes from string s to file f.

The data type returned for functions fread,fseek and fwrite is int and ftell is long int.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions