arrayEncode
Posted: Sun Feb 07, 2010 9:40 pm
I would like to store the content of a data grid in a file. I tried the following without success:
put the dgData of group "test" into pArrayData
open file "Test" for binary write
write arrayEncode(pArrayData) to file "test"
close file "Test"
Nothing is written to the file.
I tried also
open file "Test" for binary read
read from file "Test" until empty
put arrayDecode(it) into pArrayData
close file "Test"
set the dgData of group "test" to pArrayData
I suppose I could convert the array to a variable and then save the variable and vice versa, but I got the impression from the User Dictionary that the code above would work.
Any help much appreciated.
put the dgData of group "test" into pArrayData
open file "Test" for binary write
write arrayEncode(pArrayData) to file "test"
close file "Test"
Nothing is written to the file.
I tried also
open file "Test" for binary read
read from file "Test" until empty
put arrayDecode(it) into pArrayData
close file "Test"
set the dgData of group "test" to pArrayData
I suppose I could convert the array to a variable and then save the variable and vice versa, but I got the impression from the User Dictionary that the code above would work.
Any help much appreciated.