What did that program do? Did it get the part of the String that you want?
Can you identify what line has the data so you can use split to extract the part you want?problem is working with more than one line.
Pseudo code:
begin loop
read line
if this line has the data
then extract the data from this line
end loop