"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