• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to open database

 
shilpa ad
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do i open the database?
Shilpa
 
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 Shilpa
You will have to create a program (in Java of course) to read and write to the database.
Your instructions file will explain the format of the database. You have to write code that can work with this.
Eventually your code will end up as either the Data class, or a class used by the Data class. Then the remainder of your application will be able to access the database through your Data class.
Regards, Andrew
 
Gareth Knowles
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shilpa,
Take a look at java.io.RandomAccessFile. You can find the details and tutorials on the http://java.sun.com/ web site. Then use the schema specification you were given to figure out how many bytes to read for each element of the header and for each field of each record.
Cheers
Gareth.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic