Your code is working..

I can do this .. it's okay. But I have an application which uses B-Tree And I want to make abailable the data on the memory for all other of read or if necessary for write.

Now, for the implementation of the B-Tree where the required memory space is not predefined seems little complex to me.

I was asking for the help or any idea of implementing.