Hi,
I have a console application that gets inputs from the user.
Something like:

Console application A:

Console.WriteLine("Please enter your fname:");
string fname = Console.ReadLine();
Console.WriteLine("Please enter your lname:");
string lname = Console.ReadLine();


I want to create a new console application (B) that executes the first
consple app A
but I want to simulate the user interaction.

I tries to use the following:
proc.StandardInput.WriteLine("FOO");

But I don't know how to wait for the application output telling me to
enter the input.

Do you have any suggestion how to do it?
Thanks
dyahav


-- 
To unsubscribe, reply using "remove me" as the subject.

Reply via email to