Posts Tagged ‘text files’
how to get rid of those annoying 3 encoding characters written at the start of a text file
If your text file looks like
TEXT
or similar the you have generated encoding characters, to generate the file without them use
Dim TextString As String = “TEXT”
My .Computer.FileSystem.WriteAllText(“C:\TEXT.TXT” , TextString, False, System.Text.Encoding.ASCII)
the Default option will encode in ANSI, but still provide the encoding string.