R
Robert Dufour
I got a stream from a file, could be any document type like doc or txt.
I want to convert it to a string variable so that I can replace some custom
tag contents in it's text with text values generated from a database.
Then I need to save the stream as another document file.
so far I got
Dim Fname As String = "C:\Myfile.doc"
Dim bytes As Byte()
Dim fs As FileStream = File.OpenRead(Fname)
That gets me a stream but how do I change this to a string variable?
Maybe better question is how would I detect as sequence of charracters that
would be like "<YOURCOMPANYNAME>" and replace it with " My company name is
".
Thanks for any help
Bob
I want to convert it to a string variable so that I can replace some custom
tag contents in it's text with text values generated from a database.
Then I need to save the stream as another document file.
so far I got
Dim Fname As String = "C:\Myfile.doc"
Dim bytes As Byte()
Dim fs As FileStream = File.OpenRead(Fname)
That gets me a stream but how do I change this to a string variable?
Maybe better question is how would I detect as sequence of charracters that
would be like "<YOURCOMPANYNAME>" and replace it with " My company name is
".
Thanks for any help
Bob