Page 1 of 1

moving the pointer after using fopen

Posted: Wed Dec 18, 2002 4:00 am
by jiop
hello all, i am trying to append text to an existing file, but i want to append the text to the beginning of the file after opening the file handler using fopen("filename", a+);

how would i move the file pointer the the beginning of the file?

Posted: Wed Dec 18, 2002 4:15 am
by Takuma
Why not use "w+" instead of "a+".

Well here's the function:-

fseek