title: How to detect a new line of any file using C program
body: <p>I am reading a file of integers. I want to save integers from each line to a new array. For this I want to detect a new line of a file. If anybody knows this please help.</p>
  
  <p>The file to be read is as follows</p>
  
  <pre><code>1 2 4 5 6
  7 3 2 5 
  8 3 
  9 7 6 2 
  </code></pre>