title: Reading integers from a file separated with spaces
body: <p>I am having a file which is holding integers like this:</p>
  
  <pre><code>11_12_34_1987_111_       
  </code></pre>
  
  <p>where <code>_</code> represents spaces and i want to store them in integer array having max size suppose 100. I have tried this </p>
  
  <pre><code>    i=0;
      while((c=fgetc(f))!=EOF)
      {
  
          fscanf( f, "%d", &amp;array[i] );
          i++;
      }
  </code></pre>
  
  <p>but printing this array gives me infinite values on my Screen. </p>