• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX:Please analyze the DBAccess interface

 
Donald Jack
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,every one
I just downloaded my assignment,but I don't dare to deal with it.
In my instructions.html file,there are a interface DBAccess provided.

This is the first part of it.
How can I read and update/delete/create records?
The .db file provided is used to read chars/strings or bytes,isn't it?
Best regards, Donald
 
Patrick Deng
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Can you forward a copy of the instruction to me, I want to take a look at it. Thanks a lot.
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

How can I read and update/delete/create records?

You can use the RandomAccessFile to perform I/O operations.

The .db file provided is used to read chars/strings or bytes,isn't it?

The data in .db file can be extracted according to the Data file format given in the instruction.html.
For example, in my instrcution:

The format of data in the database file is as follows:
Start of file
4 byte numeric, magic cookie value identifies this as a data file
...

So, in your code, you can

Hope this help.
Nick
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic