By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,194 Members | 829 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,194 IT Pros & Developers. It's quick & easy.

freopen()

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.