newbie question

  • Thread starter Thread starter HockeyFan
  • Start date Start date
H

HockeyFan

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?
 
HockeyFan said:
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.
 
Back
Top