<div dir="ltr">I&#39;m trying to figure out how to read in the piped files with getopt/argv.<div><br></div><div>i.e. ./aed -e -p secret &lt;input</div><div><br></div><div>How do I read in the input? I tried using argv[optind] or even argv[argc] and I get null. </div>
<div><br></div><div>Any tips on how to read this in? It works fine if you enter text at the command line but I can&#39;t get the piped files to work. Output seems to work, just need help with the input. </div><div><br></div>
<div>Thanks for help</div></div>