Claude Mourier writes:

> As the list is very quiet, a technical question :
> Is there any (simple) way to save/load an entire SBasic array to/from disk
> (without saving elements one by one) as binary ?
> I suspect such item can be retrieved by some system variable and size
> is stored somwhere with the size.

As others have mentioned, there are various toolkits available to do this. 
As so often in the QL world, everyone seems to have their own ideas of what 
they need, so one often has no choice but to write one's own toolkit. Mine 
has the following features:

*  Save and load an "unlimited"  list of assorted variables,
    including arrays of any type
*   Arrays can be loaded to or saved from sub-arrays
*   Re-load data back into array of different size than the saved
    size (last dim of string arrays has to be the same though)
*  Selective loading of variables and arrays
*  Elementary coersion (eg single dimension string array can be
    loaded into a string variable, integer values into float variables,
    etc) (Goodness knows why I went to all that trouble!)
*  Implemented as functions to allow for sensible error handling

The documentation is sketchy. When thats sorted I'll probably put it on my 
website (www.witteware.com/knoware). In the mean time, if you need a copy, 
just let me know.

Per 
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to