Let's say I have a text file that contains data such as this:
data1:data2
data1:data2
data1:data2
data1:data2
I want to split this data into two separate arrays. One array containing the data from the left hand side of the colon, and the other containing the data from the right hand side.
What would be the most efficient way of going about it?