freopen()

This is a File I/O function. It is not implemented in the Compiler.

Syntax
  #include <stdio.h>

  
  void freopen(const char *name,

  
               const char *mode,

  
                FILE *f);

  
Description

freopen() opens a file using a specific file descriptor. This can be useful for redirecting stdin, stdout, or stderr. About possible modes, see fopen().

See also

fclose()