What is stream in c#?

Posted by Vivekjj under C# on 1/8/2013 | Points: 10 | Views : 39115 | Status : [Member] | Replies : 5
Hi ,

what is meant by stream and what is the use of using stream?
can any one tell it with real time ex.




Responses

Posted by: Ankitsrist on: 1/8/2013 [Member] Starter | Points: 25

Up
0
Down
stream means flow of data...

Vivekjj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ankitsrist on: 1/8/2013 [Member] Starter | Points: 25

Up
0
Down
or check it out following link

http://www.dotnetperls.com/stream

Vivekjj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 1/8/2013 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Stream is an object which is used to transfer the data. we have file streaming,memory streaming etc. Stream is an abstract class.
There is a generic stream class,System.IO.Stream, from which all streams are derived. Reader writer streams such as StreamReader and StreamWriter are not streams by their meaner, they are not derived from System.IO.Stream, they are designed to help to write and read data from and to stream.

Once go through these links
http://www.c-sharpcorner.com/uploadfile/prvn_131971/system-io-and-streams-in-C-Sharp/
http://stackoverflow.com/questions/1404303/c-sharp-using-streams


Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Vivekjj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Raja_89 on: 1/9/2013 [Member] Starter | Points: 25

Up
0
Down
Hai

Stream is a sequence of data which travels from source to destination

Types
FileStream,InputStream..etc

Vivekjj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shubh on: 1/11/2013 [Member] Starter | Points: 25

Up
0
Down
Hi Friend

A stream is an object used to transfer data.Very often, the outside source will be a file , in this case you will use FileStream, but that is not necessarily the case. For example MemoryStream is used to store data in memory and System.Net.Sockets.NetworkStream handles network data.There is a generic stream class,System.IO.Stream, from which all streams are derived. Reader writer streams such as StreamReader and StreamWriter are not streams by their meaner, they are not derived from System.IO.Stream, they are designed to help to write and read data from and to stream!

i think it helps you
thanks

Shubham Agrahari

Vivekjj, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response