Page 1 of 1

How to append the file from TOP

Posted: Tue Dec 19, 2006 5:50 am
by eshban
how i can APPEND(WRITE) at the top of the FILE by using fwrite function or any other.

Posted: Tue Dec 19, 2006 6:14 am
by volka
You have to read the old contents, write the new contents at the beginning of the file and then append the old contents again.