I have a C++ program that is supposed to read input from a text file, and write the output to a text file. I wanted to try an achieve this without adding any extra code, so in the command line I write
project.exe<input.txt>output.txt
This works, but in the ouput.txt file, I can't see any of the input. It just says something like:
Enter option:
option output
I could just add std::cout<<option;
after every input, but is there a way to show the input without adding any extra code?