Android Question Storing an array in a permanent file

SJButts

New Member
Licensed User
Longtime User
In a b4a program, I create and fill with numbers a medium-sized numerical array such as:

DIM array1 (500,2) AS single.

I just want to store this full array permanently on my device's card, then turn it off, go home, eat dinner, etc.

Tomorrow, I want to turn my device on and retrieve the array just as it was yesterday, then fool with the values (keep some, replace other, etc.), and save it again (same size) on my permanent storage. I will do this again and again until I die or my wife complains.

QUESTION: What's the best, simplest approach? MAP file? List? I want to do as little messing with the structure in order to save and retrieve it as possible: just store the array and retrieve it, no fuss, no muss.

What say you all?
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
Hi,

If you need to retrieve the data by calling a fixed field name the map will be perfect as you won't have to deal with the data rank (index at). I would use this version.
 
Upvote 0
Top