title: How can I print out the file I just inputted into my program in C++/C
body: <p>I'm trying to make my program output everything I typed into the command line but the file I streamed to it is not printing out because it doesn't get stored in argv. Here is how I execute:</p>
  
  <p>Input:
  <code>./program &lt; file.txt</code></p>
  
  <p>Expected output:
  <code>./program &lt; file.txt</code></p>
  
  <p>Actual output:
  <code>./program</code></p>
  
  <p>Just to be clear I don't want to print out what is in the file. I only want to print out the name of the file.</p>