C Programming/stdio.h/fread

fread is a function that reads buffered binary input from a file. It is included from the stdio.h header file in the standard C library.



The  function copies   items of data of size   from the named input   into an array pointed to by. An item of data is a sequence of bytes (not necessarily terminated by a null byte) of length. stops appending bytes when  items have been read, end of file has been reached, or an error has occurred. Upon returning,  sets the file pointer in the stream pointing to the byte past the last byte that has been read. The contents of  remain unchanged. The  function returns the number of items actually read. If  is zero, no action is taken and the function will return 0.