title: Notepad++ script permission denied to text file
body: <p>I'm trying to scrape some information and then add it to a text file but when I run the script, I get the following error:</p>
  
  <blockquote>
    <p>PermissionError: [Errno 13] Permission denied: 'stocks.txt'</p>
  </blockquote>
  
  <p>I'm doing this for adding to the file.</p>
  
  <pre><code>f = open("stocks.txt", "a")
  f.write(containers[0].string + "\n")
  f.close()
  </code></pre>
  
  <p>When I go to my file explorer and right click the program and press run, it prints to the file but any other way gives me the error.</p>