FMX load external variable to array

Hi everyone!
ok…here it goes…

If I have an external text file with a variable, (let’s say it’s called names) with a list of names,… how do I load that variable into an array in flash?. Does it have something to do with Split() to separate the different values on the list separated with commas?

let’s say the external file is:
names=john, peter, veronica, alfred.
How do we load that in flash so we have something like:
namesList=[john,peter,veronica,alfred].

And another question related. What if the names also come with phone numbers?
names=john, 4157894567, peter ,3103924586, …
(I’m not sure you would write it like this)

I guess I’d probably need to load the numbers into another array
namesList=[john,peter,…]
phonesList=[4157894567,3103924586,…]

How would I do that…per index?

thanks so much!! Any suggestions welcome! :thumb: