R
Reggie
I have been using the system() command to write the results of a
program to a file. This is being accomplished by the following when
running netstat for example:
system("netstat > example.txt");
When I run the command again, it completely rewrites the text file with
new results. What I would like to do is run the command again and have
the results append to the text file instead of completely rewriting the
text file. I have tried several hybrid commands using <fstream> but
nothing has worked yet. Thanks for any help.
program to a file. This is being accomplished by the following when
running netstat for example:
system("netstat > example.txt");
When I run the command again, it completely rewrites the text file with
new results. What I would like to do is run the command again and have
the results append to the text file instead of completely rewriting the
text file. I have tried several hybrid commands using <fstream> but
nothing has worked yet. Thanks for any help.