Binary with appended zip-file

BCS ao at pathlink.com
Sun May 20 13:28:31 PDT 2007


Reply to Henning,

>> There are two binary to D converter i know of:
>> * www.dprogramming.com
>> * in the tioport project, the bintod folder
>> So you can compile the zip into a ubyte[] and link it to your
>> sources, then your app can simply read it.
>> 
> Thanks a lot I tried the bintod from dprogramming, works great!
> Exactly what I looked for!
> 
> Henning
> 

another solution would be:

auto zipstream = new MemoryStream(import("zipfile.zip));

the import("...") loads the file at compile time and stuffs it into the binary 
as a constant string, that with the memory stream lets you read it like a file





More information about the Digitalmars-d mailing list