I am following the sample code at http://codewee.com/view.php?idx=101 to write data in UTF-16LE encoding, that is, ccs=UTF-16LE
I find the file created in this way will always contain a BOM(0xFEFF).
That is OK for a single file.
However, currently I need to generate several UTF-16LE files and merge them into one file. Therefore, only one BOM at the beginning of the first file is enough, while the BOMs in the remaining files are useless.
Therefore, is there a way to prevent _tfopen_s or CStidoFile from writing the BOM for some specific files?