![if !IE]> <![endif]>
STREAM AND ITS USAGE OF C#
Ø In C#, all I/O operations are handled using streams. A stream is an abstraction of continuous one way flow of data.
Ø Stream is the abstract base class of all streams. A stream is an abstraction of a sequence of bytes, such as a file, an input/output device, an inter-process communication pipe, or a TCP/IP socket.
Ø Streams helps to achieve
· Persistent storage of objects
· Transmitting objects between nodes in a network
· Encrypting message streams
· Data compression
Ø A stream is a path along which data flows. Once the link is established by associating the stream with Source/Destination,Data Flow commences.
Ø An analogy can be flow of water in a pipe from a tank to a bucket. The tank is the source of water and the bucket is the destination.
Ø The pipe is a path along which water flows. The tap controls the flow of water. Opening the tap commences the flow of water. Closing the tap stops the flow of water.
Ø A similar concept of datqa flow from source to destination is achieved using stgreams in c#.
Ø A stream is a path along which data flows.
Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.