Are you sure your file is not "db-2x2.db" with the .db extension? My project had a .db extension.
You can always make a copy of the file, then try to open it in a text editor and see if there is anything in there. When I did this, I saw the data, but also a lot of encoded characters.
I used the other constructor, where I passed in an object of type "File", not "String" as my first argument when I instanciated RandomAccessFile.
Assuming your datafile is in a directory called c:\myproject\datafile, try something like this:
This is just a temporary solution to show you how the RandomAccessFile class works. Eventually you will have to figure out how to get the path and filename from the user, via a GUI interface, and pass that into your File constructor.
Please see the
official rules for building a RandomAccessFile. [ May 09, 2006: Message edited by: Bob Nedwor ]