title: problem with fread
body: <p>i am trying to read one byte at a time from a file: </p>
  
  <pre><code>size_t result_new = 1;  
  char buf6[1];  
  if( (result_new = fread(buf6, 1, 1, pFile)) != 1)  
              {  
                  printf("result_new = %d\n", result_new);
                  printf("Error reading file\n");
                  exit(1);
              }
  </code></pre>
  
  <p><code>result_new</code> is becoming 0 and it is printing the error. any idea what can be wrong. im sure <code>pFile</code> is fine. </p>
  
  <p>thanks</p>