title: FileStream: used by another process error
body: <p>I have two different modules that need access to a single file (One will have ReadWrite Access - Other only Read). The file is opened using the following code in one of the modules:</p>
  
  <pre><code>FileStream fs1 = new FileStream(@"D:\post.xml", FileMode.Open, FileAccess.ReadWrite, FileShare.Read);
  </code></pre>
  
  <p>Th problem is that the second module fails while trying to open the same file using the following code:</p>
  
  <pre><code>FileStream fs = new FileStream(@"D:\post.xml", FileMode.Open, FileAccess.Read);
  </code></pre>
  
  <p>Do I need to set some additional security parameters here?</p>