Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

writing string with BufferedOutputStream

807597Mar 23 2005 — edited Mar 23 2005
I have read froma file, done some encoding on bytes I have read,and saved this enocding information as variable length strings representing Huffman encoding. Everything is kosher and print out to the screen just as I would like it to, confirming that all encoding has happened as it should have.

How do I print a string value from an array (looped) to my BufferedOutputStream and hence my file? Methods require byte output. This seems trivial,but I can't seem to get it. I juat want to output a string at a time to a file, how I do that???
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 20 2005
Added on Mar 23 2005
3 comments
199 views