check up thew RamdomAccessFile class in java.io.*; there are many methods to help you out one of the indeed returns the size of the file in bytes and a seek(long) method lets you jump to that pointer. but you are not allowed to handle the pointers yourself.
The problem is that each object instance may be a different size, depending on its state. If one instance contains a long string, its serialized version will be longer than an instance with a shorter string. This means that you can't simply multiply an array index by a size and hope to find the start of the object. In this respect, it's like random access to a text file with variable length records. ------------------ Phil Hanna Author of : JSP: The Complete Reference Instant Java Servlets
Phil Hanna<BR>Sun Certified Programmer for the Java 2 Platform<BR>Author of :<BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072127686/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">JSP: The Complete Reference</A><BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072124253/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">Instant Java Servlets</A>