Steve, when you write the serialised array to the file, are you using binary files? The output of arrayencode is binary, so if you're not writing binary files, you'll probably get your data munged up...

Best,

Mark


On 13 Apr 2009, at 20:50, Steve Checkley wrote:

Hi all,

I'm storing data in an application using arrays and I need to save these out to a file.

I've serialised the data using the arrayEncode function but can't decode it back again.

The structure of the save file is to place a marker such as <productList>, add a return character, then the serialised array, another return character and then a closing marker, </productList> in this case.

When viewed in a text editor, it looks like:

<productsList>
random characters
more randomeness
</productsList>

Using lineOffSet, I'm finding the first and last lines of the serialised array. It's when I come to decode the array that it falls over.

Any pointers? Is this the best way to save arrays to text?

Thanks in advance,


Steve

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to