wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Reading bytes and bits" Watch "Reading bytes and bits" New topic
Author

Reading bytes and bits

John Chan
Greenhorn

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
SCJP, MCDBA
 
Don't get me started about those stupid light bulbs.
 
subject: Reading bytes and bits
 
Similar Threads
IO Streams and Characters.
Confusion creating String
New to Java, Simple I/O question
Byte and character streams
Reading data from files