469,366 Members | 2,332 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,366 developers. It's quick & easy.

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 :)
Nov 13 '05 #1
1 3211
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

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Alex Vinokur | last post: by
4 posts views Thread by Rouben Rostamian | last post: by
2 posts views Thread by Alex Vinokur | last post: by
8 posts views Thread by John Forkosh | last post: by
3 posts views Thread by John Devereux | last post: by
1 post views Thread by joshuawilsonster | last post: by
1 post views Thread by system55 | last post: by
4 posts views Thread by Hlk.Turk | last post: by
2 posts views Thread by Guillaume Dargaud | last post: by
5 posts views Thread by Joakim Hove | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.