I'm convinced that I am missing something, but why can't you just save them as follows:

For X = 0 to 3
Write X,Array1[X]
Next X

For X = 4 to 7
Write X,Array2[X-4]
NextX

...