title: freopen stdout and console
body: <p>Given the following function:</p>
  
  <pre><code>freopen("file.txt","w",stdout);
  </code></pre>
  
  <p>Redirects stdout into a file, how do I make it so stdout redirects back into the console?</p>
  
  <p>I will note, yes there are other questions similar to this, <strong><em>but</em></strong> they are about linux/posix. I'm using windows.</p>
  
  <p>You can't assigned to stdout, which nullifies one set of solutions that rely on it.
  dup and dup2() are not native to windows, nullifying the other set. As said, posix functions don't apply (unless you count fdopen()).</p>