title: How to execute perl script with input parameters and output the result to a file in C#
body: <p>I want to execute a perl script in my c# code and output the result to a file.  The perl script will take in a binary file name as an input parameter, and I want to redirect the  result to a text file.  I have the following in my c# code, but the output file test.txt is not created.  Please advise if you know the problem:</p>
  
  <pre><code>private Process myProcess = null;
  
  myProcess = new Process();
  
  myProcess.StartInfo.FileName = "perl.exe";
  myProcess.StartInfo.Arguments = "C:\\mydir\\myPerl.pl C:\\mydir\\myFile.DAT &gt; C:\\mydir\\test.txt";
  myProcess.Start();
  </code></pre>