title: How to write to a file without overwriting current contents?
body: <pre><code>with open("games.txt", "w") as text_file:
      print(driver.current_url)
      text_file.write(driver.current_url + "\n")
  </code></pre>
  
  <p>I'm using this code right now, but when it writes to the file it overwrites the old content. How can I simply add to it without erasing the content that's already there.</p>