title: does write mode create a new file if not existing?
body: <p>I'm trying to write to a file that does not already exist using a file context manager.</p>
  
  <pre><code>a=open ('C:/c.txt' , 'w')
  </code></pre>
  
  <p>The above does not succeed. How would I create a file for writing if it does already exist?</p>