### Add Byte Order Mark

The Byte Order Mark (BOM) uses the Unicode-Character U+FEFF (Zero width No-Break Space) at the beginning of a data stream.
It is used to recognize the definition of the Byte-Sequence and Codingformat in UCS/Unicode-String (esp. Textfiles).
To add BOM to a textfile header use:
Dim out As OutputStream = File.OpenOutput(...)
out.WriteBytes(Array As Byte(0xEF,0xBB,0xBF), 0, 3)
Dim tw As TextWriter
tw.Initialize(out)
'write the text with tw
tw.Close

Changed: , Category: Files, File: T6C193M1369.htm, ID: 1369