title: waiting for process to finish
body: <p>i have a program in c# which run some process for example</p>
  
  <pre><code>        generate.exe a.tif -o myfile.txt
  </code></pre>
  
  <p>and the next line after the following my code will need to access the following myfile.txt.
  how do i know when it is ready? i know that it will generate the file for sure, but how to set the next line so that it executes only after the file myfile.txt is generated. thanks a lot!!!</p>