title: Can't reach EOF with fscanf loop
body: <p>Helo, as I continue with my HW project, i am stucked in reading EOF, given this loop, it's stucked forever and obviously, input never gets value of EOF, what am I doing wrong?</p>
  
  <pre><code>int main ()
  {
  FILE *ffil;
  char input;
  ffil=fopen("a.csv","r");
  printf("error0");
  do
  {
      fscanf("%c",&amp;input);
  }while(input!=EOF);
  fclose(ffil);
  return 0;
  }
  </code></pre>