Two Laptop Bag
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes RandomFile  seek method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "RandomFile  seek method " Watch "RandomFile  seek method " New topic

RandomFile seek method

Claude Rouleau

Joined: Oct 13, 2000
Posts: 9
I am revisiting RandomAccessFile and found that the argument for the seek method is a long (64 bytes integer). The documentation says that it is the offset position, measured in bytes from the beginning of the file.
Since there is no way to specify another starting point I concluded that the maximum lenght of a Random file is (2 power 63) -1.
Do I am right?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: RandomFile seek method
It's not a secret anymore!