Extraneous characters appear when using a #Include on a text file
I am using VB 2005 to create a text file containing HTML code (which is then called from a SHTML file using an #include directive).
I generate the text using concatenation into a textbox.text field and then write it to disk using the VB command:
My.Computer.FileSystem.WriteAllText(filepath, TextBox1.Text,False)
The VB code:
TextBox1.Text = TextBox1.Text &"<font color=""000000"">"
TextBox1.Text = TextBox1.Text & x + 1 &"."
TextBox1.Text = TextBox1.Text &" <a href="""
etc.
When I display the file as a text file or as html in a browser it displays normally. When I use the #Include directive from the calling SHTML file it always returns three extraneous characters:??at the beginning of the displayed section.
Is this an issue with the VB-generated file or with the #Include directive? Any suggestions on how to prevent this?
Thanks!

