I mean I want to print the result of my program in a text file instead of showing the result in the console page, so please guide me to do that in C++.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jan 19, 2015, 7:17 AM EST
For an example, check out:
http://www.cplusplus.com/reference/cstdio/freopen/
Joe WilsonRank #631 · 3.8K reputationPosted Jan 18, 2015, 6:49 AM EST
Joe WilsonRank #631 · 3.8K reputationPosted Jan 19, 2015, 9:25 AM EST
Sanjeewa Abeywardana63 reputationPosted Jan 18, 2015, 5:02 AM EST