Got the URLyBird project. I have a question. Th instructions say something of this sort regarding the data file format(for every start of the data section of the file):
"2 byte flag. 00 implies valid record, 0x8000 implies deleted record"
I tried reading each record supplied by Sun and I get a double space character for this field for every record. Does this mean that the DB file given by Sun needs to be 'post-filled' with either '00' or '0x8000'?(If yes, then what about this statement in the assignment: 'Note that you must keep a copy of the original database file supplied to you, and this must be the file you submit'!!) Or am I missing something during the read part?
I read the file using a format like this:
String str = new String(input, offset, length, "ISO-8859-1");
Also tried UTF-8 and US-ASCII but no good, I get the same output.....a double box like character that is decoded as space.
Having tough times in the assignment, please help .
Thanks in advance.