i am trying to read one byte at a time from a file:
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); } result_new is becoming 0 and it is printing the error. any idea what can be wrong. im sure pFile is fine.
thanks