c assign part 2
c assign part 2
84seek():
This function is used to move the file pointer to a
Specified lbcation within the fle. It takes three
avqumets: the file pointer, the offset (num ber
bytes to move), and the oriqin.
Syntax:
int fseek(FlLE *Stream,long ofset, int s0uTCe)
Example
tseek(P,10, StEk-sET); |/Move to the ioth byte
fom the beginning
4ftellO:
It netuns the cuent position of the file pointer
in the specified file stre am.Tt is often used to
detemine the cuTYent position within a file.
file
Syntax:
long ftell(FILE * stream);
EXample:
tong pos -ftell(4P) ;
/ Ghet the cuent position.