This sounds like a job for a quick perl routine. 
Read the file in byte by byte, and AND it with 127, then write it
   out byte by byte to a new file.

George

> -----Original Message-----
> From: [email protected] [mailto:u2-users-
> [email protected]] On Behalf Of [email protected]
> Sent: Wednesday, November 10, 2010 8:37 AM
> To: [email protected]
> Subject: Re: [U2] Reading a Unix file from another machine.
> 
> 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
> [email protected]
> http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to