title: Reading a file used by another process
body: <p>I am monitoring a text file that is being written to by a server program. Every time the file is changed the content will be outputted to a window in my program.</p>
  
  <p>The problem is that I can't use the <code>Streamreader</code> on the file as it is being <code>used by another process</code>. Setting up a <code>Filestream</code> with <code>ReadWrite</code> won't do any good since I cannot control the process that is using the file.</p>
  
  <p>I can open the file in notepad. It must be possible to access it even though the server is using it.</p>
  
  <p>Is there a good way around this? </p>
  
  <p>Should I do the following?</p>
  
  <ol>
  <li>Monitor the file</li>
  <li>Make a temp copy of it when it changes</li>
  <li>Read the temp copy </li>
  <li>Delete the temp copy. </li>
  </ol>
  
  <p>I need to get the text in the file whenever the server changes it.</p>