This week's book giveaway is in the Other Open Source APIs forum. We're giving away four copies of Storm Applied and have Sean Allen, Peter Pathirana & Matthew Jankowski on-line! See this thread for details.
I realized that my database file provided by assignment zip is wrong !!!
My assignment say:
Repeat to end of file:
1 byte flag. 00 implies valid record, 0xFF implies deleted record
Record containing fields in order specified in schema section, no separators between fields, each field fixed length at maximum specified in schema information
This missing a byte (00 or 0xFF) at the end of the last record.
Someone can chek for me ?
So what should I do ? Just put this missing byte and submit my project or do I send an email complaining about it ?
I don't quite clearly understand your message but just in case, if you are reading a single byte for the Valid Status of a record you need to use readUnsignedByte() since 0xFF is 255 as an int and the maximum value of a signed byte is 127.
Thanks for sugestions...it dont help.
I open the file in Hex editor and is missing the last byte -> 00 or 0xFF !!!
What I mean is....in the end of each record must have a byte 00 or 0xFF and...in the last record DONT HAVEEEE !!!
I think i'll send an email to SUN reporting it....
Champion, did you try reading it with the DBFileReader tool?
Which one is your assignment?
So what should I do ? Just put this missing bit and submit my project or do I send an email complaining about it ?
Hum... no. You have to send the same file that was downloaded by you when you got your project. Anyway, if you really think that your .db file has some problem, you can send an email to email@example.com. But it is really weird...