say i have the following data in a .dat file:
*A-1-2-3-4*B-8-2-4*C-4-2-5-1-5
how can i print the these data like this?:
A : 1 2 3 4
B : 8 2 4
C : 4 2 5 1 5
randomly print any one number for each letter. A, B and C can be any word. and the amount of the numbers can be different. i know that it has some thing to do with the * and the -