Functions HI-TECH C FREAD
#include <stdio.h> int fread(void * buf, size_t size, size_t cnt, FILE * stream)
Up to cnt objects, each of length size, are read into memory at buf from the stream. The return value is the number of objects read. If none is read, 0 will be returned. Note that a return value less than cnt, but greater than 0, may not represent an error (cf. fwrite() ). No word alignment in the stream is assumed or necessary. The read is done via successive getc()'s.
fwrite, fopen, fclose, getc