title: Reading only first character of each line in file
body: <p>I'm currently trying to read and process only first character in each line of a ".c" file. So far i have came to this code, but n is not even printed ot od the loop: </p>
  
  <pre><code>void FileProcess(char* FilePath)
  {
      char mystring [100];
      FILE* pFile;
      int upper = 0;
      int lower = 0;
      char c;
      int n =0;
      pFile = fopen (FilePath , "r");
      do {
        c = fgetc (pFile);
        if (isupper(c)) n++;
  
      } while (c != EOF);
  
      printf("6");
      printf(n);
      fclose (pFile);
  }
  </code></pre>