I have success running a program I wrote (with file extension .exe) from the Windows command line with either an integer parameter or a redirection to specify input from a .txt file. Is there any way to do both?
For instance, the same project in Linux accepts './a.out 1 < testfile.txt' so 1 is in the arg array and testfile.txt is redirected as input. The same input in Windows will not work. I have tried something like ./a.exe (1 & '< testfile.txt') with no luck.
Thank you for any and all helpful responses, Tyler