Encyclopedia > Fopen

  Article Content

Fopen

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);

In some libraries, mode can include a letter b, which indicates the given file is a binary file[?]. Without that, a sequence of carrying return and line feed is automatically regarded as line feed. See new line for new line issue.



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
242

... - 3rd century - 4th century Decades: 190s 200s 210s 220s 230s - 240s - 250s 260s 270s 280s 290s Years: 237 238 239 240 241 - 242 - 243 244 245 246 ...

 
 
 
This page was created in 27.9 ms