|
||
FILE *fopen( char *filename,char *mode )
char *filename; /* name of disk file */ char *mode; /* mode string */
|
|
|||||||||||||||||||||||
Synopsis |
#include "stdio.h"
The fopen function opens a stream associated with the file specified by filename for I/O, according the the value of mode .
|
|
||||||||||||||||||||||
Parameters |
filename and mode are null-terminated strings. mode must contain exactly one of "r", "w" or "a", plus potentially a "+":
mode may also contain one or more of the following:
|
|
||||||||||||||||||||||
Return Value |
fopen returns a non-NULL stream pointer if the file open succeeds, and NULL (0L) otherwise.
|
|
||||||||||||||||||||||
See Also |
|
|||||||||||||||||||||||
|
|