Pedro, welcome to the forum.
If I understand you correctly what you need is to parse the lines into individual tokens.
Take a look at this tutorial .
Next time make sure you encase your code in:[code]and[/ code]tags. (without the space between / and code).
That will ensure proper format of the code and easiness of read.
Aia
Nearly a Posting Maven
2,392 posts since Dec 2006
Reputation Points: 2,224
Solved Threads: 218