title: Python: Import a file and convert to a list
body: <p>I need help with importing a file and converting each line into a list.</p>
  
  <p>An example of the file would look like:</p>
  
  <pre><code>p wfgh 1111 11111 111111
  287 48 0
  65626 -1818 0
  4654 21512 02020 0
  </code></pre>
  
  <p>The first line beginning with p is a header and the rest are clauses.
  Each clause line must begin with a series of at least two integers and finish with a zero</p>
  
  <p>thanks in advance</p>