|
-
March 28th, 1999, 01:21 PM
#1
How does seek in randomaccessfile class work?
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
-
April 2nd, 1999, 09:07 AM
#2
Re: How does seek in randomaccessfile class work?
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|