title: How to use fscanf() to read a file containing integer number?
body: <p>I need to use <code>fscanf()</code> to read a file containing integers from multiple lines. </p>
  
  <p>The first integer is useless on every line; the rest I need to read. </p>
  
  <p>I am doing like this</p>
  
  <pre><code>do {
      fscanf(fs1[0],"%d%c",&amp;x,&amp;y);
      //y=fgetc(fs1[0]);
      if(y!='\n') {
          printf("%d ",x);  
      }
  } while(!feof(fs1[0]));
  </code></pre>
  
  <p>but in vain. For example, </p>
  
  <pre><code>101 8 5 
  102 10 
  103 9 3 5 6 2 
  104 2 6 3 8 7 5 4 9 
  105 8 7 2 9 10 3 
  106 10 6 5 4 2 3 9 8 
  107 3 8 10 4 2 
  </code></pre>
  
  <p>we have to read</p>
  
  <pre><code>8 5
  10
  9 3 5 6 2 
  2 6 3 8 7 5 4 9
  8 7 2 9 10 3
  10 6 5 4 2 3 9 8
  3 8 10 4 2
  </code></pre>