When writing directly to a file sometimes you may unexpectedly get 3 extra characters written at the beginning of the file:
0xef, 0xbb, and 0xbf
How to prevent it from happening ?
To instantiate a writer that doesn't provide a BOM, call it with any overload of the UTF8Encoding constructor:
var writer = new X12Writer(customFilename, false,