title: C# - Realtime console output redirection
body: <p>I'm developing a C# application and I need to start an external <em>console</em> program to perform some tasks (extract files). What I need to do is to redirect the output of the console program. Code like <a href="https://stackoverflow.com/questions/415620/redirect-console-output-to-textbox-in-separate-program-c">this one</a> does not work, because it raises events only when a new line is writen in the console program, but the one I use "updates" what's shown in the console window, without writting any new lines. How can I raise an event every time the text in the console is updated? Or just get the output of the console program every X seconds? Thanks in advance!</p>