I want to take data from 'input.txt' to run 'main.exe' and then save the result of that program with this data to 'output.txt'. If possible, I would like to write wwith form <input.txt> <output.txt>.
First you need to compile your c++ program, then run it with the two parameters. See cplusplus.com for some tutorials on file in and file out and the resource for taking in command line arguments: https://www.geeksforgeeks.org/command-line-arguments-in-c-cpp/