• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to open .db file?

 
Tien Fu Liu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:
I am new to java batabase.
I just join the scjd exam.
From the document that sun gave me,
I found a db-2x3.db file.
Can anyone teach me how to open this file?
And also what kinds of database system is best for java scjd exam.
Thanks
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tien Fu,
Welcome to JavaRanch.
As Lasse mentioned in this thread, the database format is a custom one designed for these assignments.
You should have received a file called instructions.html. Inside the instructions you will find a detailed description of the database format. You have to write a class or classes to read this file.
There should be one class, called Data.java, which implements the interface described in the instructions, which is the public access to the database.
Does this make sense?
Regards, Andrew
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tien Fu,
To give you some ideas to work with
  • some people are using Random Access File to access the database, as discussed (briefly) in this thread
  • some are using File Chanels, as discused in this thread, and this thread
    Regards, Andrew
  •  
    Mark Spritzler
    ranger
    Sheriff
    Posts: 17278
    6
    IntelliJ IDE Mac Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I deleted the duplicate post of this thread. This seems to have the best answers in this one anyway.
    Tien, try to avoid duplicate posts, either in the same forum or across forums. Thanks
    Thanks Andrew.
    Mark
    [ June 24, 2003: Message edited by: Mark Spritzler ]
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic