C file input/output: Difference between revisions

Content deleted Content added
rv unneeded addition
m Robot-assisted disambiguation (you can help!): C programming language
Line 1:
{{lowercase|title=fopen}}
 
In [[C (programming language)|C programming]], the <code>'''fopen'''</code> function is one of the basic functions in the [[stdio.h]] file of the [[C standard library]]. It returns an [[I/O]] [[stream]] attached to the specified [[computer file|file]] or other device from which reading and writing can be done. If the function fails, it returns 0. 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.
 
They are defined as