Get file info into variables?
<p>What is the best way to get this info from a file for each line?</p>

<p>the text file looks like this</p>

<pre><code>1 E  
1 P  
1 C  
2 E a  
5 E P C
</code></pre>

<p>So i need to get the info from line 1(1 E) put 1 into a variable and then E into another. The same for the rest of the lines, but some have a different number of elements which I dont understand how to do.</p>
