hey all,
I am trying to write into a text file..
Each time I "fopen & fwrite" it writes/overrides at first line..

I need to write to the line after the last line.
Like appending...!! >>
How could I do that with fseek function ?


Suggestion but a long-way:

Code:
1)use while loop to count all lines of a text file!

2)use fseek to get down to the last line 	

/fseek -l <name> <linenumber>
/fseek -n <name>

3)fwrite -n <name> <text>



thanks.

Last edited by eawedat; 11/11/11 07:45 PM.