Reading file as binary

Ali Çehreli acehreli at yahoo.com
Wed May 29 15:43:20 PDT 2013


On 05/29/2013 03:23 PM, Adam D. Ruppe wrote:

>          byte[] a = [10, 16, 32, 123];
>          writef("0x");
>          foreach(b; a)
>              writef("%x", b);
>          writef("\n");

There is also the nested array formatting. Pretty cool but dyslecix! :)

     writefln("0x%(%x%)", a);

Ali



More information about the Digitalmars-d-learn mailing list