This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading bytes and bits

 
John Chan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys can anybody please help me in this as i'm really stuck... I have a file which contains characters and also some binary data. I am require to read in the characters as bytes and the binary data as bits. Thanks
 
Francis Siu
Ranch Hand
Posts: 867
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi John
As I know,the first condition is that you should know when will be the character and when will be the binary data because the sequence of the thing should match the reading data. Of course, I am not sure the programme may contain some technique to do or may be needed to use some specific API to help you to do this.
I am also waiting for somebody who can give you some hints
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic