(I'm a new user, so sorry if this is a bit confusing)
Basically, I would like to use a command to save the value of an array (myArray) to a separate file (myArray.txt), and then use another command to replace the value of the array (myArray) with the value of the file (myArray.txt).
So, command A puts the value of myArray into myArray.txt
While command B clears the value of myArray, and puts the value of myArray.txt into myArray.
Once again, I'm new, so sorry if this is a little hard to understand, or if I did something wrong.