title: Accessing a file already in use
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3709104/read-file-which-is-in-use">Read file which is in use?</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to access a file that is already in use in Windows 7. I have tried all the suggestions I could find on this site and other but no success yet.</p>
  
  <p>What I have tried:</p>
  
  <pre><code>FileStream fs = new FileStream(iFile, FileMode.Open, FileAccess.Read, FileShare.Read);
  FileStream fs = new FileStream(iFile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
  FileStream fs = new FileStream(iFile, FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite);
  FileStream fs = new FileStream(iFile, FileMode.Open, FileAccess.ReadWrite, FileShare.Read);
  </code></pre>
  
  <p>Always the same error </p>
  
  <p>The process cannot access the file 'fileinuse' because it is being used by another process.</p>
  
  <p>I am open to any work arounds to this problem.</p>
  
  <p>Thanks in advance for any help!</p>