Re: How to create a UTF16 text file on Windows?

2016-11-17 Thread Kagamin via Digitalmars-d-learn
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;

Re: How to create a UTF16 text file on Windows?

2016-11-16 Thread Daniel Kozak via Digitalmars-d-learn
Dne 16.11.2016 v 23:43 lafoldes via Digitalmars-d-learn napsal(a): 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;

How to create a UTF16 text file on Windows?

2016-11-16 Thread lafoldes via Digitalmars-d-learn
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",