Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About the caculation for the offset

 
Rico ZHANG
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I got the B&S assignment, but after I read the offset from header information.
I tried to read the record from the DB file by this way: dataInStream.read(byteArray, offset,len), but I cannot get what I need here.

I know the offset is the 4 byte numeric value in the header, did I do the wrong thing to read the records?

Anyone can help me?Cheers
 
Rico ZHANG
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh..I got it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic