title: Printing a file does not work
body: <p>I am working with Python 2.7 in the PowerShell. I have this piece of code:</p>
  
  <pre><code>from sys import argv
  
  script, filename = argv
  
  target = open(filename, 'w')
  
  #new content for file
  line1 = raw_input("line1: ")
  line2 = raw_input("line2: ")
  line3 = raw_input("line3: ")
  
  target.write(line1)
  target.write("\n")
  target.write(line2)
  target.write("\n")
  target.write(line3)
  target.write("\n")
  
  #after that line the message occurs (see further down)
  print target
  target.close()
  </code></pre>
  
  <p>This is the message I get:</p>
  
  <pre><code>&lt;open file 'test.txt', mode 'w' at 0x004C6230&gt;
  </code></pre>
  
  <p>Why isn't it showing me my new content? When I open the file with a double click, the newly-added content is there. Any ideas?</p>