Command line - output results without overwriting the target file

I have a situation where I output the results from the CLI program:

eg. input.exe> ​​output.txt

Although output.txt already contains text, by default it is overwritten using the above command, how can you write output to output.txt without overwriting existing data?

+3
source share
1 answer

Use an operator >>; it adds output to existing file contents.

input.exe >> output.txt
+6
source

All Articles