Is it possible to use hash function but with File instead of Array, and it's gonna be saving the record in a file position and then search will fseek to that position, but I'm not sure how to open a file with let's say 1000 line, do you think that method could work?
Take the 2-minute tour
×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.
|
Sure, if you have a hashing function that can neatly map your data. Two things to keep an eye on:
I'd recommend reading up on ISAM files, they're pretty close to what you're looking to do. |
|||||
|