Search found 2 matches
- 13 May 2014 22:22
- Forum: DOS Batch Forum
- Topic: how to pass stdout text as command input to another program?
- Replies: 4
- Views: 4064
Re: how to pass stdout text as command input to another prog
class A { public static void Main(String[] args) { Console.WriteLine("Hello World"); } } class B { public static void Main(String[] args) { //this is how B would pick up A's output if it were reading from stdin //String pipedInput = Console.ReadLine(); //if (pipedInput != null) // Console...
- 12 May 2014 23:33
- Forum: DOS Batch Forum
- Topic: how to pass stdout text as command input to another program?
- Replies: 4
- Views: 4064
how to pass stdout text as command input to another program?
I apologize for what I'm sure to most of you will seem like a very noobish question, but if A prints a line of text to stdout and B reads input text from stdin, then we can pass A's output to B as follows A | B now suppose that B expects its input to be provided in the form of command line arguments...