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

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
 
J

Jon Skeet [C# MVP]

=?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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top