There are many ways to do this - I'll give you the simplest, but if it doesn't cover what you need, then just provide more detail.
dim FirstArray(19) as string ` Array items are 0 to 19, which is 20 entries
dim SecondArray(19) as string ` Second array that I will load into - note it is the same size as the first array.
` Fill the first array with strings
for i = 0 to 19
FirstArray(i) = str$(i)
next
` Save it
save array "ArrayData.dat", FirstArray()
` Load it into another array
load array "ArrayData.dat", SecondArray()
` Display the content of the loaded array
for i = 0 to 19
print SecondArray(i)
next
wait key
The drawbacks of this method are:
- Non-typed arrays only.
- You need to know the size of the array you are loading and pre-create the array to that size.
- It requires 1 file per array,