title: Capturing console stream input
body: <p>I would like to make a console application (c# 3.5) which reads stream input.</p>
  
  <p>Like this:</p>
  
  <p>dir > MyApplication.exe</p>
  
  <p>The app reads each line and outputs something to the console.</p>
  
  <p>Which way to go?</p>
  
  <p>Thanks</p>