1 To efficiently save and load number arrays do:
4 DUMPARRAYS([<filespec>],<arrays>); to save them
6 LOADARRAYS(<filespec>); to load them back in.
8 the arrays must be number arrays. i.e. as produced by
9 ARRAY(<arrayname>,INTEGER, .. ); or ARRAY(<arrayname>,FLOAT, .. );
11 the defaulting of <filepsec> is identical to the SAVE and LOADFILE
12 commands. e.g. DUMPARRAYS(<arrays>); dumps them in the default file.
16 ARRAY(FOO,FLOAT,2,3,4);
17 FOO[1,2,3]:EV(%PI,NUMER);
18 ARRAY(BAR,INTEGER,20);
19 FOR I FROM 1 THRU 20 DO BAR[I]:I;
20 DUMPARRAYS([ARRAYS],FOO,BAR); saves FOO and BAR into the file ARRAYS.
26 FOO[1,2,3]; ==> 3.14159..
28 The amount of room occupied by these files is roughly 1/2 of what
29 is needed when saving the arrays using the SAVE command. More
30 importantly it doesn't require chunks of FLONUM or FIXNUM space as
31 the SAVE command sometimes does.