How do I write a specific file on a specific line in C.? I have values in many variables that need to be written on the file.
This works only when the size of the new line is the same:
< Ul> a +
fseek ()
to start the file ftell ()
to keep the beginning of the line in mind ftell ()
and fwrite ()
with the result from fseek ()
overwrite itIf line length changes, then you should make a copy of the file.
No comments:
Post a Comment