472,143 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

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 3306
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
reply views Thread by Saiars | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.