title: compiler says:cannot convert int to FILE*
body: <p>While doing filing im stuck here.The condition of the while loop is not working.The compiler says cannot convert int to FILE*.</p>
  
  <pre><code>while(pFile!=EOF);
  </code></pre>
  
  <p>Should i typecase the pFile to int?I tried that but it did not worked.Thanks in advance.
  The complete code is:</p>
  
  <pre><code>int main()
  {
      char ch;
      char name[20];
      FILE *pFile;
      int score;
      pFile=fopen("database.txt","r");
      if(pFile!=NULL)
      {
  
           while(pFile!=EOF);
          {
          fscanf(pFile,"%c",ch);
          }
      }
      else
      printf("Cant open the file.......");
          fclose(pFile);
          return 0;
  }
  </code></pre>