title: Reading command line arguments from stdin
body: <p>So I want to allow myself to run ./program so that it allows input for piping a text file.</p>
  
  <p>EX: ./program &lt; sometext.txt</p>
  
  <p>I know that I can't get the data using argv, but I've been trying to google how to get it from stdin, and I can't seem to find the right keywords to google to get some basic understanding of how to do this. I'm sure it's done using scanf, but I still have a hard time trying to understand it. </p>
  
  <p>Any sort of insight would be helpful, I don't need the exact code, though if it's simple enough, that would be very helpful. Thanks!</p>