Futurebasic/Language/Reference/write dynamic

Syntax
WRITE DYNAMIC deviceID,arrayName

Revised
May, 2001 (Release 5)

Description
Use  to send the contents of a dynamic array to a disk file. Data written to a file in this manner can be read back into memory using. Before dynamic arrays are written to the disk, they are automatically compressed.

Example
DIM x DYNAMIC myAry(_maxLong)

FOR x = 1 TO 100 myAry(x) = x NEXT

OPEN &quot;O&quot;,#1,&quot;Dynamic Array Test&quot; WRITE DYNAMIC #1,myAry CLOSE #1

KILL DYNAMIC myary

OPEN &quot;I&quot;,#1,&quot;Dynamic Array Test&quot; READ DYNAMIC #1,myAry CLOSE #1

FOR x = 1 TO 10 PRINT myary(x) NEXT

KILL &quot;Dynamic Array Test&quot;