title: K&R Exercise 1-14, stdin from the file
body: <p>Well, I'm getting my hands on <code>c</code> and have chosen "The C Programming Language" by colleague's recommendation. So far I'm in the chapter 1, so this is pretty noob question. Generally this is question for other exercises as well which I've came through.</p>
  
  <p>I'm checking my solution on 1-14 with following <a href="http://www.eng.uerj.br/~fariasol/disciplinas/LABPROG/C_language/Kernighan_and_Ritchie/solved-exercises/solved-exercises.html/krx114.html" rel="nofollow">source</a>. And below the program listing I saw following note:</p>
  
  <blockquote>
    <p>Here's the output of the program when given its own source as input:</p>
  </blockquote>
  
  <p>I only was able to execute compiled exercise and enter text manually and using <code>Ctrl + D</code> to emulate <code>EOF</code>. What is the ways to use input data from arbitrary file (eg. source) and make it work as author suggestion. I do assume that it is not copy/paste, at least not manual one.</p>
  
  <p>What I've tried is <code>cat ./histogram.c &gt; ./histogram</code>  but this did not work.</p>