Synopsis

#include <stdio.h>

FILE *freopen(const char *filename, const char *mode, FILE *stream);

Description

Associates a new filename with the given open stream and same time closing the old file in stream.

Return value

Errors