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:
private Process myProcess = null;
myProcess = new Process();
myProcess.StartInfo.FileName = "perl.exe";
myProcess.StartInfo.Arguments = "C:\\mydir\\myPerl.pl C:\\mydir\\myFile.DAT > C:\\mydir\\test.txt";
myProcess.Start();