title: Writing a table in a text file
body: <p>I am trying to write a condensed list of music tracks,times that they have been played and the artist to a text file in tabular form.</p>
  
  <p>However currently the tracks are in list form, i.e.</p>
  
  <pre class="lang-none prettyprint-override"><code>08:04:10 Current Track Playing = Skinny Genes - Eliza Doolittle 
  
  08:07:09 Current Track Playing = Keep On Walking - Scouting For Girls 
  
  08:10:45 Current Track Playing = Thinking of Me - Olly Murs 
  
  08:14:01 Current Track Playing = Hangin' On A String - Loose Ends 
  
  08:17:34 Current Track Playing = Together Again - Janet Jackson 
  </code></pre>
  
  <p>Throughout the text file. </p>
  
  <p>My code looks like this</p>
  
  <pre><code>open('log','w').writelines([(line[:33]+line[42:])
      for line in open(fl) if "Current Track Playing" in line])
  </code></pre>
  
  <p>Any ideas on how to put the data into a table rather than just a list?</p>