• Post Reply Bookmark Topic Watch Topic
  • New Topic

Stream and Character reading  RSS feed

 
Badri Sarma
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Please help in this, when i should go for Stream reading and character reading in IO package.
I am notable to distinguish which one to use.
thanks in advance
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use streams to read binary data (raw bytes), and use readers/writers to read text made up of characters. In some language encodings, as you probably know, a character can be made of several bytes. That's what reader/writers are for: they automatically handle assembling multiple bytes into characters as needed.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!