title: Printing a .txt File Python
body: <p>I need some help Im trying to display the text files contents (foobar) with this code</p>
  
  <pre><code> text = open('C:\\Users\\Imran\\Desktop\\text.txt',"a")
      rgb = text.write("foobar\n")
      print (rgb)
      text.close()
  </code></pre>
  
  <p>for some reason it keeps displaying a number. If anyone could help that would be awesome, thanks in advance</p>
  
  <p>EDIT: I am Working with Python 3.3.</p>