Okay, i've read a lot of information on parsing a .TXT file. but I cant seem to work this one out.Ultimately i need to parse the data from a .txt file into an array starting after a specific line that says '!data;' and stopping at '!enddata;' below is the example of my source file. I want to pick out all of the data separated by the colon and place it into an array. if you can give me some asssistance; or point me in the right direction, that would be awesome :)
Usless text
!data;
data1:data2:data3:data4:data5:data6:data7:
data1:data2:data3:data4:data5:data6:data7:
!enddata;
More Useless text
i know on each line i need to use the explode function, i just dont know how to get it to start stop at that specific line!