Question Standard Input to File

Zinefer

New member
Joined
Nov 6, 2008
Messages
2
Programming Experience
1-3
I just now starting to learn vb.net, and I am trying to take some standard input (output from a program called redmon) and put it all into a file. I have been searching google but found nothing that helps me.

Thanks for any suggestions.
 
If the app is calling your program and then writing text to the STDIN for you to read, you'll need to read Console.In

If the input is line based, Console.In.ReadLine() will be ok, but if it is just a stream, you'll need to declare an array (chars or bytes, cant remember) and read it in chunks
 

Latest posts

Back
Top