title: Redirecting output from an executable, but not all output is redirected?
body: <p>I am experiencing an issue whereby I cannot completely redirect output from an executable.  For discussion, let's say the executable is <code>printnames.exe</code>.</p>
  
  <p>If I do <code>printnames.exe</code> (without redirection), the following output is displayed in the command window:</p>
  
  <pre><code>Adam
  Tim
  Jesse
  Sean
  </code></pre>
  
  <p>However if I do <code>printnames.exe &gt; myfile.txt</code>, the command window shows:</p>
  
  <pre><code>Tim
  Sean
  </code></pre>
  
  <p>...and the contents of <code>myfile.txt</code> is:</p>
  
  <pre><code>Adam
  Jesse
  </code></pre>
  
  <p>How is this possible?  What in the code can cause such behavior?  Shouldn't the redirection operator redirect <em>all</em> output?</p>