Someone please help me! As a project for my class I am supposed to write a program of my own, however, I have become stuck on something.
When I open a text file like this:
fopen(file_name, "w")
How can I write to a specific line within the file; compared to appending it to the end of the file. Is there something that needs to replace "w"?
This is the method that I use to write to the file now.
fputs(the_record, out);
fputc('\n', out);
I am sure you can, but I am unsure of the placement and syntax of such code.
Thanx in advance!