How to change stdout back to default?

Asked

Viewed 65 times

1

In case I change the stdin and stdout for some . specific txt, however after changing do not know how to make it return to the normal stdout(in case the prompt), I change through the freopen as in the example:

freopen (fileOutName, "w", stdout);

Can anyone tell me how to get stdout back to the prompt?

  • 1

    I don’t know what you read in English, but take a look at this text. In it you will see that it is not recommended the use of freopen.

  • Jeez, that’s my question when you ask for ;P

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.