C file input/output

This is an old revision of this page, as edited by TakuyaMurata (talk | contribs) at 04:09, 2 June 2003. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computer programming, the fopen, with related functions fdopen and freopen, is one of basic functions in C programming language. Because it is so popular that many script languages derivered from C tend to provide the same function with the same or similar functionality. It is considered more high-level than the open system call of UNIX operating systems.

They are defined as.

FILE * fopen(const char *path, const char *mode);
FILE * fdopen(int fildes, const char *mode);
FILE * freopen(const char *path, const char *mode, FILE * restrict stream);