I have trouble parsing a txt file which contains lines like this:
50.0 0.1 [0.03, 0.05, 0.067, 1.003, ...]
50.0 0.134 [0.3465, 0.5476, 1.0, ....]
.
.
.
I don't need the beginning of each line, only the lists! The elements in the lists does not holds the same number of characters and they are separated by a space and a comma.
What I want to do is to ignore whatever is in front of each list and jump to (for example) the 9th element of the list, read the value and save it. Then go to the next line and do the same.
my approach:
Find a way to parse the line of txt, as a list and not as a string, so i can process the elements of the list.
or
manage to jump to the 9th value in the list and then read everything until the next value (10th in this case).
any ideas how to do this?