• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in reading the database file

 
Satish Avadhanam
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I am trying to read the database file that is given along with the assignment. I am using RandomAccessFile class to read. The code looks like below.

If I execute the above code, the compiler says the following.

The dbFile is in the same package as the class.
Can anyone please give me suggestion of how I can read the database file?
Thanks for the help.
[ February 13, 2004: Message edited by: Satish Avadhanam ]
 
Jacques Bosch
Ranch Hand
Posts: 319
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your full db file's file name really only "dbFile"?
Mine was called "db-2x3.db"
Isn't your something similar?
 
Satish Avadhanam
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Jacques, mine is db-1x1. I'm just trying to do sample program, then dwell into main one.
Can anyone please throw some light on how to read database file? Thanks.
 
Anna Hays
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put your DB file at the same level as the suncertify folder.
 
Satish Avadhanam
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Anna.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic