-2
I know that on Linux or Windows I can redirect the message of a program to be saved in a file instead of being shown at the end of the command >
:
./a.out > arqSaida.txt
Or still write at the end of the file instead of overwriting it:
./a.out >> arqSaida.txt
Is there any way to show the output of the program in the terminal so I can track its execution and at the same time save the output in a file? Remember that I only have the compiled program, so I can not change it!
Thank you very much!
– Jônatas Trabuco Belotti