Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URLyBird db file

 
Ronnie Ho
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am wondering how do I work with the database file db-1x3.db? I am able to view it on microsoft word with a lot of garbage characters showing up. Is there another program that I can open the .db file with? Also, to access the file (read/write), do I just do normal file io to that file? I've read the spec and am a little bit confused. Thanks.

Ronnie
 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The database file is a binary file, you need a hexeditor.


Regards,
Mihai
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ronnie,

As Mihai says, the data file is a binary file, and you would need a hex editor to view it if you have not yet developed your Data class. The format of the file is a proprietary format designed by Sun, so there is no magic editor that readily understands the data file format.

And yes, you use normal io classes to read and write the file. The instructions should tell you the format of the file itself. You could use DataInputStream and DataOutputStream, or you could use RandomAccessFile, or you could use some of the NIO classes - it is all up to you.

Regards, Andrew
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic