Apurva
March 28th, 1999, 12:21 PM
I want to create an index sequential file using Randomaccessfile class. i want to know how do i keep track of the record offsets. How do i use the seek function to set the file pointer to the record desired?
Thanks
Zafir Anjum
April 2nd, 1999, 08:07 AM
A little theory behind ISAM (indexed sequential access method) will help.
Basically create index file (separate from the datafile) that contains fixed size records. You define the records based on your search requirements but one of the fields is always an offset to the record in the main data file. The index file should always be sorted based on one or more fields.