- #1
ptabor
- 15
- 0
So I'm using freopen to redirect output from stdout to a file... How do I redirect it back to the screen?
relevant code:
FILE *stream = freopen("data.txt", "w", stdout);
/* print stuff */
How the heck do I get the output stream to point to the console again?
relevant code:
FILE *stream = freopen("data.txt", "w", stdout);
/* print stuff */
How the heck do I get the output stream to point to the console again?