GE324 Laboratory Assignment #1

FILE *freopen(const char *filename, const char *mode, FILE *stream); Freopen attaches a different file to a stream tat’s already open. (most common use is to associate a file with stdin, stdout, or stderr). To cause a program to begin writing to the file foo: ................
................