CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 1999
    Posts
    3

    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

  2. #2
    Join Date
    May 1999
    Posts
    93

    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
  •  





Click Here to Expand Forum to Full Width

Featured