Using the fopen() Function

The format of fopen() is:
#include <stdio.h>
FILE *fopen(const char *filename, const char *mode);
The mode variable is a character string that consists of an open mode which may be followed by keyword parameters. The open mode and keyword parameters must be separated by a comma or one or more blank characters.
Note: For information about the recln parameter, see Dynamic Stream File Creation.