Issue with writefln ?

0ffh spam at frankhirsch.net
Wed Apr 4 15:28:32 PDT 2007


Hija,

I get an exception (std.format string) thrown
after I read a file with std.file.read and try
to writefln its content, while it works fine
with toStringz and printf.

Code is something like:

char[] s=cast(char[])stf.file.read("name.ext");
printf("<%s>\n",toStringz(s)); // works fine
writelnf("<",s,">"); // exception generated

I have shrunk the file to:

garble"%"urgh

I do strongly suppose that the problem lies
somewhere in part saying "%" , but... ?

Is this a Hemiptera? :-)

Regards,

   frank



More information about the Digitalmars-d mailing list