I would like to create tree structures to store the data on disk. I wonder if I can use files to store them. Is there any way that I can access the disk block/sectors? so that, I can maintain my own file system for my database.

Finally, what is the best data structure to store the data? (in terms of performance,reliability and implementation ease).

Any help in this respect would be a lot useful.

Thanks in advance.