Here is a single line batch file that will create the file for you and provide it as input to myCode.exe :
echo 2 3 8 > output & myCode.exe output
Otherwise, you probably need to modify your program to read the arguments directly from the command line.
You can redirect standard input / output / error streams to or from a file, but I think there is no way to redirect the contents of the command line to standard input stream. Take a look at this page for details of batch redirection.
Vladimir Sinenko
source share