I understand now that a Magic Cookie is found in the header of the db file (in my case URLyBird 1.2.1 db) and is a int value which must be retrieved from at first to be compared with in the futer to make sure we are talking about the same db file, else exceptuion is thrown. Ok.
I have retrieved my Magic cookie number and have put it in a constant variable for futher
testing.
First question: why is it that when i try read ALL of the contents of the file (using RandomAccessFile) i get all question marks and crosses, even when i cast the return ints to char?
Also, when i open the file using
word or open office, i find that it contains many un readable chars (small squares). Is it not in unicode formatting?
Thanks in advance and regards.
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJD, SCEA/OCMJEA
Live life to an interface, not an implementation!