python reading text file
<p>I have a text file, of which i need each column, preferably into a dictionary or list, the format is :</p>

<pre><code>N       ID   REMAIN        VERS          
2 2343333   bana           twelve    
3 3549287   moredp       twelve        
3 9383737   hinsila           twelve           
3 8272655   hinsila           eight        
</code></pre>

<p>I have tried:</p>

<pre><code>crs = open("file.txt", "r")
for columns in ( raw.strip().split() for raw in crs ):  
    print columns[0]
</code></pre>

<p>Result = 'Out of index error'</p>

<p>Also tried:</p>

<pre><code>crs = csv.reader(open(file.txt", "r"), delimiter=',', quotechar='|', skipinitialspace=True)
    for row in crs:
                   for columns in row:
                             print columns[3]
</code></pre>

<p>Which seems to read each char as a column, instead of each 'word'</p>

<p>I would like to get the four columns, ie:</p>

<pre><code>2
2343333
bana
twelve
</code></pre>

<p>into seperate dictionaries or lists</p>

<p>Any help is great, thanks!</p>
