Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Programming/Code/Standard C Library/Functions/freopen

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

freopen #include <cstdio> FILE *freopen( const char *fname, const char *mode, FILE *stream ); The freopen() function is used to reassign an existing stream to a different file and mode. After a call to this function, the given file stream will refer to fname with access given by mode. The return value of freopen() is the new stream, or NULL if there is an error. Related topics fclose - fopen