title: Write multiple lists to text file in python - 2.7
body: <p>originally the lists was nested within another list.  each element in the list was a series of strings. </p>
  
  <pre><code>['aaa664847', 'Completed', 'location', 'mode', '2014-xx-ddT20:00:00.000']
  </code></pre>
  
  <p>I joined the strings within the list and then append to results.</p>
  
  <pre><code>results.append[orginal] 
  
  print results
  
  ['aaa664847, Completed, location, mode, 2014-xx-ddT20:00:00.000']
  ['aaa665487, Completed, location, mode, 2014-xx-ddT19:00:00.000']
  ['aaa661965, Completed, location, mode, 2014-xx-ddT18:00:00.000']
  ['aaa669696, Completed, location, mode, 2014-xx-ddT17:00:00.000']
  ['aaa665376, Completed, location, mode, 2014-xx-ddT16:00:00.000']
  </code></pre>
  
  <p>I am looking to write each list to a text file. The number of lists can vary.  </p>
  
  <p>My current code:</p>
  
  <pre><code>fullpath = ('O:/Location/complete.txt')
  outfile = open(fullpath, 'w')
  outfile.writelines(results)
  </code></pre>
  
  <p>returns only the first list in the text file:</p>
  
  <pre><code>aaa664847, Completed, location, mode, 2014-xx-ddT20:00:00.000
  </code></pre>
  
  <p>I would like the text file to include all results</p>