Graham Samuel wrote:
> However the real reason that I'm trying to go down the XML route is
> that I need this data to persist and I don't want the overhead of
> storing it in a stack rather than just keeping a trivial amount of
> text which furthermore could be easily examined/edited by non-LC
> programs.
XML is the way to go for inter-app data transfer, but FWIW if your app
was the only one using it you can save arrays to disk using
arrayEncode/arrayDecode:
global gMyArray
on LoadData pFile
put url ("binfile:"& pFile) into tData
put arrayDecode(tData) into gMyArray
end LoadData
on SaveData pFile
put arrayEncode(gMyArray) into tData
put tData into url ("binfile:" & pFile)
end SaveData
--
Richard Gaskin
Fourth World
LiveCode training and consulting: http://www.fourthworld.com
Webzine for LiveCode developers: http://www.LiveCodeJournal.com
LiveCode Journal blog: http://LiveCodejournal.com/blog.irv
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode