title: Finding the user's "My Documents" path
body: <p>I have this small program and it needs to create a small .txt file in their 'My Documents' Folder. Here's the code I have for that:</p>
  
  <pre><code>textfile=open('C:\Users\MYNAME\Documents','w')
  lines=['stuff goes here']
  textfile.writelines(lines)
  textfile.close()
  </code></pre>
  
  <p>The problem is that if other people use it, how do I change the <code>MYNAME</code> to their account name?</p>