title: StandardOutput ReadToEnd when process pauses by default
body: <p>I must have looked through hundreds of articles related to the StandardOutput ReadtoEnd halting but none of them seem to answer my specific question.</p>
  
  <p>The scenario I have is that I'm creating a wrapper for a 3rd party console app to be used in my ASP.NET MVC application. I start the process, pass it an input string (which is a dot file in string format) and the app returns a file (pdf in this case).</p>
  
  <p>The file is placed into the stdout (according to the docs) however I don't seem to be able to read the data out.</p>
  
  <p>When I run the console app manually, I receive the file as text in the output window but the program never really "exits". I have to CTRL+C to end the process.</p>
  
  <p>I'm guessing this is why my calls to </p>
  
  <pre><code>process.StandardOutput.ReadToEnd(); 
  </code></pre>
  
  <p>Just hang?</p>
  
  <p>Can anyone shed a bit of light into what I'm doing wrong. I'd like to return the file that's received in the output as a <code>byte[]</code> from my method call.</p>
  
  <p>Thanks and appologies if it seems like this is a duplicate.</p>