I developed a C++ program which utilises an .exe file through the following code:
system (TestApplication input.txt > output.txt )
TestApplication is the exe here. input.txt is the file in the same project directory, and output.txt is generated in the same directory through the program.
I have to something similar to above in C# Gui (WPF) application. What’s the substitute class for `system’ in C# and how do we perform the same operation?
System.Diagnostics.Processclass represents the process in OS, and allows you to create new processes.See http://msdn.microsoft.com/en-us/library/system.diagnostics.process.standardoutput.aspx for an example of what you’re trying to do.