std.json

Ali Çehreli acehreli at yahoo.com
Wed Nov 13 14:56:21 PST 2013


On 11/13/2013 01:47 AM, bearophile wrote:
> Ali Çehreli:
>
>>     // Assumes UTF-8 file
>>     auto content = to!string(read("json_file"));
>
> Is this better/worse?
>
> auto content = "json_file".readText;
>
> Bye,
> bearophile

That is much better.

Ali



More information about the Digitalmars-d-learn mailing list