Binary Files
2 posts in topic
Flat View  Flat View

Posted By:   Shermonica_Pittman
Posted On:   Saturday, December 1, 2001 10:37 PM

How do I write individual bits to a file? I am encodeing Ascii charaters as 5 bits instead of 8. I need to write individual bits to a binary file. Then read that file and convert the individual bits back into ASCII file?

Re: Binary Files

Posted By:   John_Zukowski  
Posted On:   Tuesday, December 4, 2001 09:54 AM

You can't write bits to a file, but you can writes bytes. You'll need to manage the merging of multiple 5 bit combinations into bytes and write those. The basic write operation of OutputStream deals with bytes.

Re: Binary Files

Posted By:   Luigi_Viggiano  
Posted On:   Monday, December 3, 2001 09:48 AM

Nothing lets you to do that. You must implement it handly.
About | Sitemap | Contact