Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File indexing

Status
Not open for further replies.

kristinalu

Instructor
Dec 4, 2006
1
HR
Hi, I know that you can search through file sequentialy or binary, but can you search with some kind of index file?

If someone has good example I would appreciate it,
thanks
 
What exactly do you understand by the term index file? Many of these terms are loosely used and mean different things to different people.

1) You could do an fseek to various locations in the file
2) It could be a file which is read into memory and then when a specified record is required, it looks up the index and seeks to that location.
3) Same as 2 but the index is stored in the form of a B-tree.

These are just three different interpretations of index file. If you could be more specific, then the MVPs won't assume the wrong things and give you something you aren't looking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top