I think you might be trying to ask how to parse each line. If so, then you will have to write logic that will go through each line and look for specific characters. For example, the character ":" can be used as a separator where content prior is a key and content after is a value.
I have those values stored in a txt file. my goal is to load those values back into my class variables. so the first time the ID value would be stored 01 then when it second time it would be a value of 02 and so forth it would load a list of values into the variable for uploading. I was able to read for a file but i dont have any logic in for it to store the data. Thats were i got stucked