title: Python not printing beautifulsoup data to .txt file (or I can't find it)
body: <p>I'm trying to put all the anchor text on a page in a txt file </p>
  
  <pre><code>print(anchor.get('href'))
  with open('file.txt', 'a') as fd:
      fd.write(anchor.get('href') + '\n')
  </code></pre>
  
  <p>and the script executes with no errors but I cannot find file.txt anywhere on my computer. Am I missing out on something really obvious?</p>