File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Reading bytes and bits Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Reading bytes and bits" Watch "Reading bytes and bits" New topic

Reading bytes and bits

John Chan

Joined: Apr 17, 2003
Posts: 3
Hi guys can anybody please help me in this as i'm really stuck... I have a file which contains characters and also some binary data. I am require to read in the characters as bytes and the binary data as bits. Thanks
Francis Siu
Ranch Hand

Joined: Jan 04, 2003
Posts: 867
hi John
As I know,the first condition is that you should know when will be the character and when will be the binary data because the sequence of the thing should match the reading data. Of course, I am not sure the programme may contain some technique to do or may be needed to use some specific API to help you to do this.
I am also waiting for somebody who can give you some hints

Francis Siu
I agree. Here's the link:
subject: Reading bytes and bits
It's not a secret anymore!