Define Stream class in .NET. Explain with an example using C#.NET.
The Stream class gives a view of various types of input and output. Streams involve three fundamental operations:1. Read :
Transfer of data from stream into a data structure.2. Write :
Transfer of data from a data structure into stream.3. Seeking :
Querying and updating the current position within the stream.
Streams are a medium to read and write data to and from memory, file or other objects.Example:
System.IO.StreamReader file=new StreamReader(@"abc.txt")