Description
string
fread ( resource handle, int length)
fread() reads up to
length bytes from the file pointer
referenced by handle. Reading stops when
length bytes have been read or EOF
(end of file) reached, whichever comes first.
Note:
On systems which differentiate between binary and text files
(i.e. Windows) the file must be opened with 'b' included in
fopen() mode parameter.
See also fwrite(), fopen(),
fsockopen(), popen(),
fgets(), fgetss(),
fscanf(), file(), and
fpassthru().