I want to run an .exe
file from my c++ program.
but I also want to pipe an input file and take output of that file into another file.
I know that this can be done from command line as:
c:> my_program.exe <"input.txt"> "output.txt"
with this command, my_program takes all standard input from input.txt
and gives standard output to output.txt
Now I want this should happen from my C++ program.
my my_program.exe
is in D: drive. also input.tx
t is in D: drive.
Please tell me how can I accomplish my goal.