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