choosing the input file name with the "-f" flag

Does anyone know the code with which I can choose an input file with a -f flag like in the example below:

a.out -f input2.txt

where input2.txt is the name of the input file.
Last edited on
Topic archived. No new replies allowed.