please dont yell at me for stupidity, for if you do it will be for stupidity's sake. i have been developing a small database and have run into a bit of a snag. i want to be able to read in parts of a database (records) without reading in the whole file. i also want it to be able to expand as much as possible. so, it cant be fixed-length. how would i do this? i can read in parts of a database if it's fixed-length records, and i can pretty much scan for one record in the entire file by reading it into memory, but these arent very good alternatives to my exponentially-expanding memory-easy database.
if anyone has a suggestion/code excerpt i would be so happy to get it i would give you props and a quick sponsor in my source code. i am developing the FreeBASE, and you can message or email me for the source code URL.