I want to create a console-based process where I run a program with some arguments and I want to be able to read it's output in realtime. However I want to keep this hidden.

Let's say I have a asm-program that takes one integer argument which determines to which number it will count.

C:\test\> asmnr 6
1
2
3
4
5
6
C:\test\>

This program will show print out a number each 5 seconds, and I want to read it's output from vb in REAL-TIME. Which means I don't want to have it's output when it's finnished but actually when it's running.


Anyone have any idea of how to do this?