How to create a UTF16 text file on Windows?
Kagamin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Nov 17 01:38:23 PST 2016
On Wednesday, 16 November 2016 at 22:43:55 UTC, lafoldes wrote:
> Hi,
> I'd like to create a UTF16 text file on Windows 7, using
> std.stdio.File and std.stdio.File.write... functions (so no
> binary write, no Win32 functions).
>
> I was experimenting with variations of this codeā¦:
>
> import std.stdio;
>
> int main(string[] argv)
> {
> auto output = File("wide_text.txt", "wt");
> output.writeln!wstring("A"w);
> return 0;
> }
What C runtime do you use?
More information about the Digitalmars-d-learn
mailing list