Michel Racicot <mi*********************@cgi.com> wrote:
I need to know what is the fastest way to copy a 9mb FileStream into a
MemoryStream?
Must I read a big buffer then writting it in my MemoryStream or is it a
better way?
Well, I don't know about "big" - a 32K buffer would be plenty, I'd
think. You might get *slightly* faster performance with a larger
buffer, but 32K would be fine.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too