::fread Binary data input function fread is one of the most important C functions for binary input. getc can also be used, but it only reads one byte at a time. fread will read a data block of any size the computer can handle. Always make sure you put 'b' in the mode parameter of fopen when planning to use binary file input-output. ::fwrite Binary data output function fwrite is one of the most important C functions for binary output. putc can also be used, but it only writes one byte at a time. fwrite will write a data block of any size the computer can handle. Always make sure you put 'b' in the mode parameter of fopen when planning to use binary file input-output. ::rndm C random access functions C has two primary random access functions, fgetpos and fsetpos which may be used to find and alter the read/write position in a file. Call fgetpos to find out where you are in a file, and later use fsetpos to return to that same position.