Loading Data Values into an ARRAY

Blitz3D Forums/Blitz3D Beginners Area/Loading Data Values into an ARRAY

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Not sure how you would expect to "just type all the
data in an array" ?!?!?!?!

Do you mean like :-

namearray$(1) = "john"
namearray$(2) = "joe"
namearray$(3) = "mark"
etc.
....
This would be very inefficient !

Think about how awkward it would be to add new data,
change the order of data in the array etc etc.

And with the RESTORE command, you can direct your
code to read data from different sections (eg
different levels in a game)


(if that doesn't make sense, just take my word for it -
it's a lot easier and more flexible using read/data !!!!)