If you read 56 bits you will be reading 8 "bytes" in 7-bit mode.
But you will also be reading 7 "bytes" in 8-bit mode.

So by reading 7 "Ascii characters" at a time out of your stream/file, you 
should be able to re-chunk them into 8 characters by prepending a bit 0 on 
the front of each 7-bit byte.

How do you do that?
Create a complete bit representation of your 7 character string (so 56 
bits) and then cut it every 7 bits (to create 8 7-bit bytes), add a zero to the 
front of each cut, and calculate what ASCII character you have just created, 
then write that character back to a new file/stream.

Old ways are the best ways.
New fangled utilties fail us in our most critical hour.

Will Old Fangled Johnson
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to