C file input/output: Difference between revisions

Content deleted Content added
mNo edit summary
m grammar
Line 1:
In [[computer programming]], the <code>'''fopen'''</code>, with related functions <code>'''fdopen'''</code> and '''<code>freopen</code>''', is one of the basic functions in the [[C programming language]]. Because it is so popular that, many script languages deriveredderived from C tend to provide the same function with the same or similar functionality. It is considered more highhigher-level than the <code>[[open]]</code> [[system call]] of UNIX operating systems.
 
They are defined as.
Line 7:
:<code>FILE * freopen(const char *path, const char *mode, FILE * restrict stream);</code>
 
In some libraries, <code>mode</code> can include a letter '''b''', which indicates the given file is a [[binary file]]. Without that, a sequence of [[carryingcarriage return]] and [[line feed]] is automatically regarded as a line feed. See [[new line]] for new line issueissues.