Functions HI-TECH C FWRITE
#include <stdio.h> int fwrite(void * buf, size_t size, size_t cnt, FILE * stream)
Cnt objects of length size bytes will be written from memory at buf, to the specified stream. The number of whole objects written will be returned, or 0 if none could be written. Any return value not equal to cnt should be treated as an error (cf. fread() ).
fread, fopen, fclose