title: Access Denied Error while creating a file using FileStream in C#
body: <pre><code>FileStream fs=new FileStream("c:/samplehubdata.xml",
                               FileMode.OpenOrCreate,
                               FileAccess.ReadWrite,
                               FileShare.ReadWrite);
  </code></pre>