By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,254 Members | 1,713 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,254 IT Pros & Developers. It's quick & easy.

Data reading problem

P: n/a
I'm a newbie.

I have some problems with bits data reading. I have binary data file
where data is written as 12bits pack. I need to read it becouse there
are saved values which have to processed later by my program. I was
wandering about reading 3bytes=24bits and split it by bits moving. If
anyone know how to do that please tell me or give me some code.

My data example:
101001000101111010100101 etc

i need to split it:
x=101001000101 y=111010100101

and then do:
mydata=x*a+b where a and b are a float point numbers

Sorry for my poor english. I wish You understand what I mean.

THX for any answer.

Mike Szpadzik
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.