Thank you about sharing this with me, it was just what i`m looking for now.Because it`s best to first write my index variables in the file and then the objects data, but objects data is done first and the index can be done only last, because for example one of the index variables contains how many objects i have to load/read, i need to use it in finite loop routine, so i can assign it as end-value.That`s the way i imagine`s best fit to know when to stop reading routine when i`m sure there is no more object data and move to next routine loading something else.
Also i`m considering to write to multiple files, every with it purpose and then pack them as one.Reverse the process when read them.
I`ll sure look at SAVE ARRAY TO DATAFILE and LOAD ARRAY FROM DATAFILE
because, i`ll need UDT for sure.And i allready know that saving UDT in array and loading it back can be tricky, from what i read in forums.
EDIT:I try to do something like this, which is not working because of...?
dim my_arr(10)
for n = 1 to 10
my_arr(n) = rnd(10)
print my_arr(n)
next n
open datafile to write 1,"test_arr.txt"
save array to datafile my_arr(),1
close datafile 1
wait key
Where there is a will, there is a way.
I often edit my posts, that`s who i am