You could write the array to file and then read it into the other array :p

Okay okay, I'm just getting silly there.