c# - How to read last line from output process class? -
i'm using process
class start process, it's calculating data giving output @ it's console , need read last line of process console. how should done? it's process.beginoutputreadline();
not know how use read last line.
string lastline = null; while (!process.standardoutput.endofstream) { lastline = process.standardoutput.readline(); } //do want here lastline;
Comments
Post a Comment