How to get the output of a Executable made in C++ in Rich text Box in C#?
The question is self explanatory, but just to add on further.
Say for i run a compiled program whose output is:
Made by C++
Now i want the output of this program (which is console based) in my Rich text Box in C#.
If the program name is:
example.exe
How do i do it?
Usually when you spawn a process you’re able to get it’s stdout and stderr descriptors.
So use appropriate class to spawn example.exe process and read it’s stdout and err.
Use following classes:
EDIT
I’ve found following example on net: