[cs631apue] Read piped files using getopt or argv?
Tejas Nadkarni
tnadkarn at stevens.edu
Fri Dec 6 23:09:44 EST 2013
I'm trying to figure out how to read in the piped files with getopt/argv.
i.e. ./aed -e -p secret <input
How do I read in the input? I tried using argv[optind] or even argv[argc]
and I get null.
Any tips on how to read this in? It works fine if you enter text at the
command line but I can't get the piped files to work. Output seems to work,
just need help with the input.
Thanks for help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20131206/e8827fed/attachment.html>
More information about the cs631apue
mailing list