How to write the content of one stream into another stream in .net?

Posted by Thomas Danecker on Stack Overflow See other posts from Stack Overflow or by Thomas Danecker
Published on 2008-09-24T19:25:54Z Indexed on 2010/05/19 16:40 UTC
Read the original article Hit count: 205

Filed under:
|

I often run into the problem that I have one stream full of data and want to write everything of it into another stream.

All code-examples out there use a buffer in form of a byte-array.

Is there a more elegant way to this?

If not, what's the ideal size of the buffer. Which factors make up this value?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about streams