It can surely be done, but you'll have to program your own function for storing and retrieving, and you'll have to keep an index of the chunks.
But just a question:
- why is your array of fixed length???
To do that properly, you should store your data (well, the data that could be >1024Kš in an other array and keep only an index in your main array.
That second array would consist of 2 elements.
1 - The data.
2 - The position inside the array of the next chunk.
So your RETRIEVE function will do something like:
- from the index in main array (mainarray[0]=5), it temporarely store the data from index 5 (secondarray[5,0]) in a variable and, if the position is valid (secondarray[5,1]>=0) it go from index to index and copies the content until it hits a -1 or, as you wish, any invalid array position.
I hope i answered your question.
S. Breton