You are in complete control of the contents of the file. The WriteFile() API deals with bytes. The bytes you tell it to write is what is written.

On Windows when a file is "saved as Unicode" that typically means that a BOM is added to the beginning of the file. This tells readers of the file how the file is encoded.

gg