What is the best way to get this info from a file for each line?
the text file looks like this
1 E
1 P
1 C
2 E a
5 E P C
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.