<br>I have some frequent and simple C questions like the one below. Are they appropriate for this forum? <br><br>Are there disadvantages to redirecting standard output to a file? And How do I undo the redirection so I can print to the screen again later in the program?<br><br>#include <stdio.h> // standard io:<br>#include <stdlib.h> // standard functions: system<br>main(int argc, char *argv[]) {<br> int rc=8; // return code<br> // redirects standard output to a file<br> freopen("FILETEST", "w", stdout); <br> printf("This line goes to FILETEST"<br><br> // unredirect. How do I do it?<br><br> printf("This line goes to the screen"<br>}<br>