In case I change stdin and stdout to some specific .txt, but after changing I do not know how to make it return to the normal stdout (in this case the prompt), I change through freopen as in the example:
freopen (fileOutName, "w", stdout);
Can anyone tell me how to do the stdout back to the prompt?