I am using vb 6.
I have a binary file and I want to read bytes 8-11. These bytes all together give the number of records in the data file.
I have a function that takes a string representation of the 4 bytes and return the number of records. so for example if I pass "00000000 00001100 00010000 11111100" to the function, it returns 790,780. which is the number of records in the data file.
If I use a hex editor I can see that bytes:
8 = 11111100
9 = 00010000
What I want to do is to store the binary representation of byte 8 whic is"11111100" in a variable. and do the rest for bytes 9-11. this way I can pass them to my function.
How can I do thos using vb.