- In the menu at the top, click "Project", then "Properties" (bottom option)
- In the Property Pages window, expand Configuration Properties on the left.
- select "Debug" on the left.
- in the "Command Arguments" box on the right, enter "<inputFile.txt"
When you do this, note that at the top of the Property Pages window, you have selected the current configuration and platform. Therefore, if you change the configuration (for example, from "debug" to "release"), suddenly these parameters are not applied, and you need to return to this properties window to set these configs for this configuration / platform.
Also, this only seems to be applicable when you start “Start without debugging” (F5), and not when using “Start debugging” (Ctrl + F5). I would think that there is a way to work with the input file w / Ctrl + F5, but I have not found it yet.
user139232
source share