quote: -------------------------------------------- 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. ---------------------------------------------- then I must use DataInputStream and DataOutputStream to access db-1x1.db? and someone can tell me which class you use to access db-1x1.db?
Michael Dreese
Ranch Hand
Joined: Apr 02, 2003
Posts: 45
posted
0
Originally posted by net dongxiao: then I must use DataInputStream and DataOutputStream to access db-1x1.db? and someone can tell me which class you use to access db-1x1.db?
Hi, I believe there are several ways to do that. The way I do is that I just use DataInputStream and DataOutputStream for file's header, and RandomAccessFile for reading/writing/updating record(s) in the db file. Hope that helps. Cheers, Michael