C file input/output: Difference between revisions

Content deleted Content added
remove faulty "example" from end of article, modify first P
m lowercase is more specific than wrongtitle
Line 1:
{{wrongtitlelowercase|title="fopen"}}
 
In [[computer programming]], the <code>'''fopen'''</code> function is one of the basic functions in the [[C programming language]]. It returns an [[I/O]] [[stream]] attached to the specified [[computer file|file]] or other device from which reading and writing can be done. Because the functionality is so useful, many languages derived from C provide functions of the same name, with the same or similar function: for example, [[PHP]]. <code>fopen</code> is considered higher-level than the <code>open</code> [[system call]] of UNIX operating systems. The related C library function '''<code>freopen</code>''' performs the same operation after first closing any open stream associated with its parameter.