I am wondering if there is a way to save the results of my program in a text file. I know that you can just do something like. /a.out> output.txt, but for my program, after type input. /a.out I am again offered TIME: where I insert the time, and then, when hit, enter the algorithm and the results are displayed.
The program displays the scene for a certain period of time, and basically my output is as follows:
time 0:00 stage 1 time 0:05 stage 1 ... time 2:05 stage 2
How can I get the output stored in a text file?
source share