A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
FileReader and FileInputStream
Joined: Jun 03, 2011
Jun 20, 2011 12:40:49
class reads 16 bit character,
class used for 8 bit byte
can you please give me an example that how this
8 and 16 bit
byte and char
difference can matter to a program's ability of reading
Joined: Oct 25, 2008
Jun 20, 2011 15:39:38
Readers read characters. Streams read bytes. They do to two different things. One cannot be used instead of the other.
So it has nothing to do with the readability of your program. It's about which functionality is required.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
I agree. Here's the link:
subject: FileReader and FileInputStream
Understanding Byte Data and Character Encoding
why a byte cant be assigned to a char?
binary files and char 
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014