The way to write text to a Stream is with a StreamWriter, e.g.Try that first and, if it doesn't work, you may find that you have to use the StreamWriter constructor that takes an Encoding object as a parameter and specify Encoding.ASCII or Encoding.Unicode.Code:Using writer As New StreamWriter(myStream) writer.Write(myString) End Using




Reply With Quote
