I dont think i f I understand correctly what you are doing. But if you need to split the line string which you have read, then just use split function from String class(read the doc, I cant post the link yet).
Example
Code:
strLine.split(",")
will return an array of strings by splitting the strLine with ,