title: How to read/write to Process input/output in C#
body: <p>I have a console app that prompts for various pieces of information that I want to invoke from C# via the System.Diagnostics.Process.Start() method from a Windows Form app but I can't quite get it to work correctly. As a simple example lets say I want to capture FirstName, and LastName via a Windows Form application and then pass each to the console app dynamically like this:</p>
  
  <ol>
  <li>Forms app launches, the user keys in the values for firstname and lastname and clicks a button to submit</li>
  <li>it calls Process.Start for the console app</li>
  <li>Console app writes out 'Enter your first name"</li>
  <li>Forms app reads this prompt, identifies that it needs to respond with the FirstName value it has collected and writes it to the console app's output</li>
  <li>Console app accepts the input and responds with the next prompt "Enter your last name"</li>
  <li>Forms app reads this prompt, identifies that it needs to respond with the LastName value it has collected and writes it to the console app's output</li>
  <li>Console app now has all the information it needs and continues on its merry way</li>
  </ol>
  
  <p>thanks for any insight, this is not an area I have worked with much at all</p>