I need to parse a text file with the following format:
and -0.436527 -0.515304 -0.002056 -0.227969 0.177528 0.201756...
with 0.101336 0.493859 -0.081095 -0.391502 -0.111579 0.388659...
voice -0.168610 0.413912 0.423446 0.484159 -0.546614 0.558571...
There may be 100 such trailing numbers. Now I need to search for a certain text, say voice and store the numbers in an array or any faster data structure and do some mathematics on the same. What will be the fastest way to achieve it? The text file may be 100+MB in size!
Thanks!