• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading - writing less than a byte ...  RSS feed

 
Tom Diamond
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Is there a way to read/write less than a byte from/to a file?
If I am not mistaken ASCII chars are one byte each. What I want to do is re-encode some of the chars with less than a byte - let's say 4 or 5 bits each. Again, when I read a file of the above type I want to read it bit by bit. Can I o that within a Java program?
Tnx,
Tom.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!