How to read to end process output asynchronously in C#?

后端 未结 4 479
醉梦人生
醉梦人生 2020-12-01 19:56

I have problem with reading the output of one Process asynchronously in C#. I found some other similar questions on this site but they don\'t really help me. Here is what I

4条回答
  •  离开以前
    2020-12-01 20:27

    What about using a StreamReader on process.StandardOutput, and the using the Read() method ? http://msdn.microsoft.com/fr-fr/library/system.io.streamreader.read(v=vs.80).aspx

提交回复
热议问题