I have an IO.Stream that I get from an embedded resource file. I
called GetManifestResourceStream.
This stream is that of a Word template doc. I'd like to write this to
disk.
If my embedded resource stream is called 'wordstream', how do I take
this and write it to disk so that it can be used as a Word template?
> I have an IO.Stream that I get from an embedded resource file. I
> called GetManifestResourceStream.
> This stream is that of a Word template doc. I'd like to write this to
> disk.
> If my embedded resource stream is called 'wordstream', how do I take
> this and write it to disk so that it can be used as a Word template?
Open a FileStream to write to, and then repeatedly read from wordstream
(into a byte array) and write to the file stream until Read returns 0.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too