• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

URLyBird db file

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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


Regards,
Mihai
 
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic