title: Python split file into list
body: <p>I'm having trouble with the function below. It seems to split the file fine but then only returns it as one element </p>
  
  <p>Function:</p>
  
  <pre><code>def splitRoute():
    route = []
    for line in open("route.txt","r").readlines():
      line = line.replace("\r","")
      line = line.replace("\n","")
      line = string.split(line, '&gt;')
      route.append(line) 
    return route
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>[['B', 'F']]
  </code></pre>
  
  <p>route.txt contents:</p>
  
  <pre><code>B&gt;F
  </code></pre>
  
  <p>Is it only returning one element because there is only one line in the file? 
  I have another function that splits another file into a 7x7 list that works fine but is that only reaching all seven elements across because it has 7 lines? </p>