title: Reading input from file in C
body: <p>Okay so I have a file of input that I calculate the amount of words and characters in each line with success.
  When I get to the end of the line using the code below it exits the loop and only reads in the first line. How do I move on to the next line of input to continue the program?</p>
  
  <p>EDIT: I must parse each line separately so I cant use EOF</p>
  
  <pre><code>while( (c = getchar()) != '\n')
  </code></pre>