"Let the one among you who has never sinned throw the first stone.." -A Hero
posted 12 years ago
Though it may seem counterintuitive, RandomAccessFile is not a File, nor does it extend File. It performs many of the tasks a File does, but it encapsulates the read/write methods by implementing DataInput/Output directly, rather than having you wrap it with streams.
Take a look at the JavaDocs for the class and you'll see how you can use it. The JavaDocs should always be your first source when learning to use a new class. If you're not familiar with them, they are installed with your JDK and available online.