• Post Reply Bookmark Topic Watch Topic
  • New Topic

Binary File Read

 
Farouk Mohamed1
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Before I understand the assignment better and start to make assumptions.I would be happy if someone could help me understand how to read a binary File. I have a file db.db with some actual data which is easy to read and the implementation
provided. But it contains certail meta data items as well
If you can please tell me how to read the binary files and look at the actual data it would be much appreciated.
Things like
1. MAGIC
2. LIVE_RECORD
3. DELETED_RECORD
where these values come from i think they are present in the first byte of the file
Please help me i am trying to understand things better so that i can decide about record number as well
Faoruk
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!