What is all about those same classes in System.IO namespace?

F

foreman

Hi there,

Hello everybody. I am a newbie to dot net framework class lib. I
am confused about those classes such as all of the stream classes and
those XXXReader XXXWriter. In fact, I have tried the StreamReader(which
can read in big5 encoding text files well) and besides, I have tried
the BufferedStream to do the same thing. It does work fine except that
It can't interpret the Chinese big5 words well(which becomes messy code
around). But aside from those Chinese words, it still can print out the
same output as the StreamReader class does. My question is: Why are
there so many stream classes and xxxreader and xxxwriter classes with
the same functionality(just a little bit difference in between).
Hopefully I will receive your responses very soon.

best regards,

horngsh.
 
J

Jon Skeet [C# MVP]

foreman said:
Hello everybody. I am a newbie to dot net framework class lib. I
am confused about those classes such as all of the stream classes and
those XXXReader XXXWriter. In fact, I have tried the StreamReader(which
can read in big5 encoding text files well) and besides, I have tried
the BufferedStream to do the same thing. It does work fine except that
It can't interpret the Chinese big5 words well(which becomes messy code
around). But aside from those Chinese words, it still can print out the
same output as the StreamReader class does. My question is: Why are
there so many stream classes and xxxreader and xxxwriter classes with
the same functionality(just a little bit difference in between).
Hopefully I will receive your responses very soon.

Please see my response in the C# group, and read
http://www.pobox.com/~skeet/csharp/faq/posting.html
 

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