There is a program (neural network), it outputs a large amount of information important for debag by printf() .
In the console console, of course, nothing fits. I would like to somehow redirect the entire output (from the beginning of the program to the end) to a file, so that after the program has finished its work, it should be easy to read. Google, found sentences like program.exe > output.txt , it doesn't work for me (as I understand it, this is because the program is interactive and requires some data to be entered by the user).
I work in Visual Studio 2015.