Adding words to a file using file pointer in C
Hi,
I am using file pointers to add some content to an XML file. The problem is that writing contents seem to be overwriting the other text. For example, my file has the following content: Code:
Hello every, this is C. Code:
Hello every body, this is C. Code:
Hello every, body is C. I can think of writing content to a diff file, deleting original file and renaming that file later to original file to accomplish this. Is there any other way of inserting word in file ? |
Quote:
Quote:
But that may be less safe and it is more complicated. |
All times are GMT -5. The time now is 07:51 PM. |