zip resources

tyro no at spam.com
Fri May 16 16:42:30 PDT 2008


BCS Wrote:

> Reply to Tyro,
> 
> > I have an exe that depends on the existance of a zip file. The archive
> > gets updated one every three or so years so I'd like to provide it
> > bundled with my exe. Is then even possible? If so, please point me to
> > the reference or provide a small example.
> > 
> > Thanks.
> > 
> 
> if you unzip it from an in memory buffer (and the file isn't to huge) you 
> can do an include("file.zip") and get it as a string.
> 
> 

Awesome... that did the trick. One caveat thought: import("file.zip") vice include(gfile.ziph).

Thanks a lot for the speedy response.


More information about the Digitalmars-d-learn mailing list