How to connect to standard inputs and outputs using C #?

What I'm trying to do is see if I can use the MinGW C ++ compiler and debugger to compile files using a C # application. I want to be able to read the output and write to the input (input mainly for the debugger) in a C # application when I need to.

Reading from the output will be very similar to what Visual Studio does in its "Exit" window, obscuring the assembly of the project.

I used System.Diagnostics.Processbefore, but could not figure out how to interact with processes.

So how can I control the input / output of std?

+3
source share

All Articles