Fread Fwrite read/write binary data #include <stdio.h> fread char *ptr int size int number FILE *fp fwrite char *ptr int size int number FILE *fp Description Placeholder Diagnostics Both functions return 0(NULL) at the end of file or error. See Also System calls read(), write(). Fopen(), getc(), putc(), printf()