Hey, Folks,
I'm writing the basis for a little game prototype, and I need to load in a file as a database of names, and need to access the data contained herein as strings.
If I were using "C" (which is where I come from), I'd define the string as a type, then allocate a big chunk of memory as Data Type Size*Number of Names, and access the memory using casting of some kind.
Can anyone suggest to me how I can do this in Blitz? I realise I can't go about it in the same way, but there has got to be a work-around to be able to allocate a large chunk of memory to store data which can be accessed like a list of a specific type?
Thanks in advance for any help!
Col.
I'm writing the basis for a little game prototype, and I need to load in a file as a database of names, and need to access the data contained herein as strings.
If I were using "C" (which is where I come from), I'd define the string as a type, then allocate a big chunk of memory as Data Type Size*Number of Names, and access the memory using casting of some kind.
Can anyone suggest to me how I can do this in Blitz? I realise I can't go about it in the same way, but there has got to be a work-around to be able to allocate a large chunk of memory to store data which can be accessed like a list of a specific type?
Thanks in advance for any help!
Col.