| Author |
Modify the db file
|
Pete Palmer
Ranch Hand
Joined: Oct 21, 2008
Posts: 74
|
|
Hi
I have been using the following link to inspect the contents of the db file :-
http://www.fileformat.info/tool/hexdump.htm
However, it does not allow the bytes in the file to be modifed. I just wondered if anyone can point me to something similar but allows specific bytes to be modified.
Regards
Pete
|
 |
Alain Dickson
Ranch Hand
Joined: Dec 08, 2008
Posts: 53
|
|
Pete - try this, I used this one for myself. It allows editing.
http://www.hexedit.com/download.htm
Download version 2.5 (Free).
Alain
|
 |
Roel De Nijs
Bartender
Joined: Jul 19, 2004
Posts: 4349
|
|
|
Why would you want to edit the content of the db-file? why not use your Data-class ? or write a small program with a RAF or a FOS to manipulate it.
|
SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
|
 |
Pete Palmer
Ranch Hand
Joined: Oct 21, 2008
Posts: 74
|
|
Alain,
Thanks for the suggestion seems to work nicely.
Roel,
The db file provided to me has all the 2 byte record flag set to VALID (00 00) and after some testing I have some set to DELETED (0x8000), however, I wanted to ensure that I handled records with the record flag set to something "invalid". Using the hex editor, I am able to modify flags accordingly and run further tests to confirm this.
Regards
Pete
|
 |
 |
|
|
subject: Modify the db file
|
|
|