The Stream abstract base class supports reading and writing bytes. All classes representing streams inherit from the Stream class. The Stream class and its derived classes provide a common view of data sources and files and isolate the programmer from the specifics of the operating system and underlying devices.
Stream comes under the System.IO
stream is an abstract class which allow us read write and transfer byte into the source. Those classes which are using for read or write or transfer byte to a specific source must use the System.IO.Stream
class.
Below three basic operations Stream:
Read - Transfers data from a stream to a data structure, as a series of bytes.
Write - transfer data to a stream from a data source.
Find - request and modify the current position in a series
Typically, streams are designed for input and output bytes. The reader and author type converts encoded characters to bytes for the stream to complete the action. Each reader and author class has a corresponding stream that can be retrieved with the class' BaseStream property.
Here are some common classes from readers and writers: