posted 20 years ago
Can you use java.io.RandomAccessFile.readInt() and readShort() to read in the db file? I'm asking because sun seemed to be rather specific in their instructions on the format used to read and write from the file: All numeric values are stored in the header information use the formats of the DataInputStream and DataOutputStream classes. All text values, and all fields (which are text only), contain only 8 bit characters, null terminated if less than the maximum length for the field. The character encoding is 8 bit US ASCII. RandomAccessFile implements DataInput/DataOutput just as DataInputStream/DataOuputStream do, but will using RandomAccessFile fulfill the requirement to use the formats within DataInputStream/DataOuputStream??
Dave
SCJP 1.4, SCJD 1.4, SCWCD 1.3, SCBCD 1.3, IBM Certified Solution Developer -WebSphere Studio V5.0