fread() STDIO Function fread() Read data from file stream #include <stdio.h> int fread(buffer, size, n, fp) char *buffer; unsigned size, n; FILE *fp; fread reads n items, each being size bytes long, from file stream fp into buffer. ***** Example ***** For an example of how to use this function, see the entry for fopen. ***** See Also ***** fwrite(), STDIO ***** Diagnostics ***** fread returns zero upon reading EOF or on error; otherwise, it returns the number of items read. COHERENT Lexicon Page 1