title: how to display file contents, am I calling the wrong thing?
body: <pre><code>    if choice==1:
      filename=input('Please enter file name: ')
      file=open(filename,'w')
  
  
  print('Enter integers to be written to file and press enter when done.')
  count=1
  fox=1
  while count &gt;=1:
      filedata=str(input('Enter integer '+str(fox)+' : '))
      count+=1
      fox+=1
      file.write(filedata)
      if filedata=='':
         break
  
  print(file)
  </code></pre>
  
  <p>I'm trying to print contents, however :&lt;_io.TextIOWrapper name='das' mode='w' encoding='cp1252'> appears in its place.</p>
  
  <p>Thanks</p>