title: Write a new line to a file (Python 3)
body: <p>So, after reading many instances of this same question being answered, I'm still stuck. Why is this function not writing on a new line every time?:</p>
  
  <pre><code>def addp(wrd,pos):
      with open('/path/to/my/text/file', 'w') as text_file:
          text_file.write('{0} {1}\n'.format(wrd,pos))
  </code></pre>
  
  <p>It would seem as though the <code>\n</code> should be doing the trick. Am I missing something?</p>
  
  <p><em>I'm running Ubuntu 15.04</em></p>