You can use something called an array. It's basically a list of variables. You can store numbers in an array with something like:
MAXIMUM=3 'maximum number of variables DIM ARRAY[MAXIMUM] ARRAY[0]=1 ARRAY[1]=6 ARRAY[2]=4Then all you need to do is save the array in a DAT file.
SAVE "DAT:NAME",ARRAY