fread() and fwrite() in C

The functions fread() and fwrite() are a somwhat complex file handling functions used for reading or writing chunks of data containing NULL characters (‘\0’) terminating strings The function prototype of fread() and fwrite() is size_t fread(void *ptr, size_t sz, size_t n, FILE *fp)size_t fwrite(const void *ptr, size_t sz, size_t n, FILE *fp); Example of fread() … Read more