Difference between revisions of "c/io/fopen"
From cppreference.com
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh) |
|||
Line 12: | Line 12: | ||
{{param list item | mode | null-terminated character string determining file access mode | {{param list item | mode | null-terminated character string determining file access mode | ||
− | {{cpp/io/c/file access flags}}}} | + | {{cpp/io/c/file access flags|c}}}} |
{{param list end}} | {{param list end}} | ||
Revision as of 19:17, 22 March 2013
Defined in header <stdio.h>
|
||
FILE *fopen( const char *filename, const char *mode ); |
||
Opens a file indicated by filename
and returns a file stream associated with that file. mode
is used to determine the file access mode.
Parameters
filename | - | file name to associate the file stream to | ||||||||||||||||||||||||||||||||||||||||||||||||||
mode | - | null-terminated character string determining file access mode
|
Return value
Opened file stream on success, NULL on failure
See also
C++ documentation for fopen
|