fread()

This is a file I/O function, also hardware dependent. It is not implemented in this Compiler.

Syntax
  #include <stdio.h>

  
  size_t fread(void *ptr, size_t size, size_t n, FILE *f);

  
Description

fread() reads a contiguous block of data. It attempts to read n items of size size from file f and stores them in the array to which ptr points. If either n or size is 0, nothing is read from the file and the array is left unchanged.

Return

The number of items successfully read.

See also

fgetc()

fgets()

fwrite()