C best practise jp->TABLE[TID][i] = read_n_bytes(tablefile, Wt); if feof(tablefile) { fprintf(stderr,"..."); exit(1);