|
-
Dec 17th, 2009, 04:06 AM
#1
Reading 2 bytes together
Hi,
I am reading a file into byte array and consists of header information.
The format specs say that the first 2 bytes gives you a static value of 474. Right now I am converting the bytes (necessarily numeric values) into binary format (representing them as strings), append the first 2 bytes together and then convert it into integer again.
That's working, but I just wanted to make sure if there is any other way to read more than 1 byte together and display the result.
Or any other way, instead of reading into byte array, something long that line?
Thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|