I have a text file looking like this :
#AAA:x
12
34
7
...
#BBB:y
-74.7
-33.2
14
...
#CCC:z
32.4
17
...
#END
I'm able to put all of it in one big NSArray (using componentsSeparatedByString:@"\n")
Now I'd like to have:
AAA float NSArray with all the values under the tag #AAA:x;
BBB float NSArray with all the values under the tag #BBB:y; etc..
How can I do this?
#, then splitting at\nand ignoring the first line?