title: How to create file without lock in c#
body: <p>I'm creating text file at location using following code.</p>
  
  <pre><code>File.Create("C:\mylog.txt").Close();
  </code></pre>
  
  <p>But by default it is locked mode</p>
  
  <p>I tried similar file to create using below code in unlock mode but i failed.</p>
  
  <pre><code> var outStream = new FileStream("C:\mylog.txt", FileMode.Create,
     FileAccess.Write, FileShare.ReadWrite);
  </code></pre>
  
  <blockquote>
    <p>How do I create file in no lock mode?</p>
  </blockquote>