title: Python: AttributeError: '_io.TextIOWrapper' object has no attribute 'split'
body: <p>I have a textfile, let's call it <code>goodlines.txt</code> and I want to load it and make a list that contains each line in the text file.</p>
  
  <p>I tried using the <code>split()</code> procedure like this:</p>
  
  <pre><code>&gt;&gt;&gt; f = open('goodlines.txt')
  &gt;&gt;&gt; mylist = f.splitlines()
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  AttributeError: '_io.TextIOWrapper' object has no attribute 'splitlines'
  &gt;&gt;&gt; mylist = f.split()
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  AttributeError: '_io.TextIOWrapper' object has no attribute 'split'
  </code></pre>
  
  <p>Why do I get these errors? Is that not how I use <code>split()</code>? ( I am using <code>python 3.3.2</code>)</p>