does IOstream have similar functions as freopen?

T

thomas

we can use

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


to redirect stdout to a file.

Is there any similar function in c++ iostream?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

manipulate fd underlying stream 38
freopen 4
TF-IDF 1
freopen on both stdout and stderr 6
freopen() 3
Redirecting stdin to a file 3
Question about freopen() failure 1
freopen & cout 1

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top