Why should I use Readers/Write instead of Stream methods?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi folks,

What is the pro an cons against using the reading/writing methods of stream based classes instead of using the reader/writer classes? As far as I could see, the only difference is that using the stream methods avoid me to create two extra instances to operate on the data stream.

Cheers,

Eric
 
=?Utf-8?B?RXJpYyBDaGF2ZXM=?= said:
What is the pro an cons against using the reading/writing methods of
stream based classes instead of using the reader/writer classes? As
far as I could see, the only difference is that using the stream methods
avoid me to create two extra instances to operate on the data stream.

Readers and writers are for text-based data. Streams are for binary
data.
 
Back
Top