I know how to add text to a file in C but it deletes everthing in the file im adding it to, how would i do it so it adds a new line were i tell it to?
I know how to add text to a file in C but it deletes everthing in the file im adding it to, how would i do it so it adds a new line were i tell it to?
Try to open the file in append mode.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
if you use the fopen change the ios:ut
to ios::app
you can then add to the end of the file
Monday - what a way to spend a seventh of your life
delete a txt file all together??