Why does fread always return 0?
are you sure that your file has a size greater than 50000 ? otherwise you could try:
fread(aByte,1, sizeof(aByte), file);
ferror()
will tell when something is wrong.
You can print the actual error message using perror()
.