cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
choosing the input file name with the "-
choosing the input file name with the "-f" flag
Nov 17, 2012 at 6:24pm UTC
edison84
(8)
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
Nov 17, 2012 at 6:27pm UTC
Nov 17, 2012 at 6:38pm UTC
ne555
(10692)
http://linux.die.net/man/3/getopt
Topic archived. No new replies allowed.