title: How do you redirect standard input to a file in the Windows command line?
body: <p>On Unix I would do something like:</p>
  
  <pre><code>cat &gt; file.txt
  </code></pre>
  
  <p>How can I do this on the Windows command prompt or batch file?</p>
  
  <p><strong>EDIT:</strong> Basically, I am looking for the functionality of <code>cat</code> with no arguments (it reads from stdin and spits it back out to stdout).</p>