title: redirecting output to the text file c#
body: <p>This is my code:</p>
  
  <pre><code>Process pr2 = new Process();
  pr2.StartInfo.FileName = "show-snps";
  pr2.StartInfo.Arguments = @"-Clr -x 2 out.delta &gt; out.snps";
  pr2.Start();
  pr2.WaitForExit();
  </code></pre>
  
  <p>show-snps writes an error. when I delete the part  "> out.snps" everything is ok and it writes the result into the terminal, but I need to redirect it to the text file.
  How can I do this?</p>