 | | The fread function reads nitems of data, each of size size, from stream, and places them into the array pointed to by ptr. It returns the number of items (not the number of bytes) read, zero if no items were read, or the constant EOF if end-of-file is encountered before any data was read. The fwrite function copies nitems of data, each of size size, from the array pointed to by ptr to the output stream stream. It returns the number of items (not the number of bytes) written, or EOF if an error occurs. | |
|