Say i have a text file that looks like this...


[System]
beginning
line 1
line 2
line 3
end

[System1]
beginning
line 1
line 2
line 3
end

...etc

how would i be able to collect the text between each 'beginning' and 'end' and store it in a seperate array for each?