Quote:
Originally posted by Leo Ayala
I need help understanding what I have to do to open/create text files in C#. In C++, this was quite simple. I'm getting very confused in C# with Stream, FileStream, StreamReader, etc.
All I want is to do is simple: I need to be able to open, create, read and write text files. How can I do this? What classes do I need to use?
Thanks...
LA
Here is a quick and diryt explination of why things are seemingly more compliacted in C#. It's the product of good design and reusability. Stream is an abstract class that defines a Stream of data that is being read or wrote. This class defines the set of functionality that would be expected for data streams. This allows C# to manipulate many different types of streams using hte same API.