Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C Programming (http://www.velocityreviews.com/forums/f42-c-programming.html)
-   -   freopen() (http://www.velocityreviews.com/forums/t316523-freopen.html)

Teh Charleh 12-07-2003 10:31 PM

freopen()
 
After I have redirected output to a file (james.txt)...

freopen("james.txt", "w", stdout);

after the prog has written what needs to be written to the file how do I direct
output back to the monitor?

Thanks :)

Enrico `Trippo' Porreca 12-07-2003 11:38 PM

Re: freopen()
 
Teh Charleh wrote:
> After I have redirected output to a file (james.txt)...
>
> freopen("james.txt", "w", stdout);
>
> after the prog has written what needs to be written to the file how do I direct
> output back to the monitor?


This is a FAQ.

http://www.eskimo.com/~scs/C-faq/q12.34.html

--
Enrico `Trippo' Porreca



All times are GMT. The time now is 04:37 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.