This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'd be intereseted to know which class(es) others have found most useful for reading the database file. The prime candidate to me seems to be RandomAccessFile. In my assignment is says that all text values:
"contain only 8 bit characters, null terminated if less than the maximum length for the field. The characterr encoding is 8 bit US ASCII".
There is no such thing as "8 bit US ASCII". This is a known mistake in the assignment, and you should mention it in your choices.txt. The general consensus here is to use ISO-8859-1 encoding instead.
As far as reading the file, you can use the RAF's read(byte b) method and convert it into a String. For example:
“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook