C file input/output: Difference between revisions

Content deleted Content added
BL~enwiki (talk | contribs)
No edit summary
m dab file
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]]. They return a [[stream]] attached to the specified [[computer file|file]] from which reading and writing can be done. Because it is so popular, many script languages derived from C tend to provide the same function with the same or similar functionality. It is considered higher-level than the <code>[[open]]</code> [[system call]] of UNIX operating systems.
 
They are defined as.
Line 30:
<pre>
FILE *f = fopen("filename", "rb");
[[fseek]](f, 0, SEEK_END);
length = [[tell]](f);
[[rewind]](f);
</pre>