BufferedFile.write

Daniel Murphy yebblies at nospamgmail.com
Fri Nov 19 23:48:41 PST 2010


"Tom" <tom at nospam.com> wrote in message news:ic7nq3$6i6$1 at digitalmars.com...
> Do I have to do this?
>
> file.write(cast(string)"hello");

You can set the type of a string literal using a suffix:

"hello"c - string
"hello"w - wstring
"hello"d - dstring 




More information about the Digitalmars-d-learn mailing list