python script redirect output of .exe file of c to a text file code example Example: run code on given input file ./test.exe < input.txt