Writing non-ascii or binary data to ofstream?

I can’t find anyway to write a simple “0” or other char to
ofstream. Syntax highligher colors “char” but it is not accepted
by FF. I and adding “binary” to the ofstream ctor does nothing afaict.

Thanks.

why not write as type string?

How do I get a non-ASCII char into a string? I tried some simple
escape codes nothing seemed to work.
Thanks.