wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "RandomFile  seek method " Watch "RandomFile  seek method " New topic
Author

RandomFile seek method

Claude Rouleau
Greenhorn

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?
Claude
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RandomFile seek method
 
Similar Threads
NX: URLyBird Database Record Number Question
write to the beginning of a file
RandomAccessFile & ObjectInputStream
reading files
from Sun Guoqiao mock 2