Encode and decode array

René Micout rene.micout at numericable.com
Mon Apr 26 12:55:33 EDT 2010


THANK YOU Trevor !!!
That work very well
René

Le 26 avr. 2010 à 18:41, Trevor DeVore a écrit :

> On Apr 26, 2010, at 12:30 PM, René Micout wrote:
> 
>> I encoded an array to put data into a text file :
>> A1	open file vxNomAgencement for write
>> A2	put arrayEncode(vxMémoireAgencement) into vxAgencementCodé
>> A3	write vxAgencementCodé to file vxNomAgencement
>> A4	close file vxNomAgencement
>> When I decode the text file :
>> B1	open file vxNomAgencement for read
>> B2	read from file vxNomAgencement until end
>> B3	put arrayDecode(it) into vxDataAgencement
>> B4	close file vxNomAgencement
>> At line B3, I have a message error, why !?
> 
> You need to read/write as binary.
> 
> How do I store an array in a text file and then retrieve it again?: <http://lessons.runrev.com/spaces/lessons/buckets/784/lessons/9597-How-do-I-store-an-array-in-a-text-file-and-then-retrieve-it-again->
> 
> -- 
> Trevor DeVore
> Blue Mango Learning Systems
> ScreenSteps: http://www.screensteps.com
> Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com_______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list