• 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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!