2010/5/18 Rolf-Werner Eilert <[email protected]>:
> Just had this idea:
>
> DIM myArray AS NEW Integer[]
>
> 'code filling myArray with integer values
>
> File.Save(myArray)
>
> Well, this won't be possible: File.Save only saves strings. Or is there
> another way by somehow copying the integer array into a string and
> saving that instead?
>
> Anyway, this would make you a direct copy of the array's binary
> structure in a file (instead of having to Cstr() and save each value as
> separated strings).
>
> Is there a way to do this in Gambas2?
>
> Regards
>
> Rolf
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Gambas-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

well there is the gb.stetting that is able to save data structure or
simply that :


dim aMyArray as new Integer[]

'do what you want to fill it

file.save("myfile", aMyArray.Join())



to load the array line :

aMyArray=split(file.load("myfile"))

------------------------------------------------------------------------------

_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to