Basically the way that the function works is it takes a string in this format:
Keyword Description
word Some word
space Represents a blank space
number The value you're trying to get
semi-colon Represents the end of the line

-or-
Code:
word number;
If your text file deviates from that format, then the way that the function is structured needs to reflect that deviation. Now I took a look at your text file and it is not setup in that format that you gave at all. In fact it looks like source code, which I'm not comfortable helping out anymore if you're trying to get values from a source code because if you created that source then you should know the values needed.