title: Closing a file after File.Create
body: <p>I check to see if a file exists with </p>
  
  <pre><code>if(!File.Exists(myPath))
  {
      File.Create(myPath);
  }
  </code></pre>
  
  <p>However, when I go to create a <code>StreamReader</code> with this newly created file, I get an error saying that</p>
  
  <blockquote>
    <p>The process cannot access the file '[my file path here]' because it is being used by another process.</p>
  </blockquote>
  
  <p>There isn't a <code>File.Close(myPath)</code> that I can call so that it is closed after being created, so how do I free this resource so that I can open it later in my program?</p>