digitalmars.D.learn - zip resources
- tyro (2/2) May 16 2008 I have an exe that depends on the existance of a zip file. The archive g...
- BCS (3/10) May 16 2008 if you unzip it from an in memory buffer (and the file isn't to huge) yo...
- tyro (3/17) May 16 2008 Awesome... that did the trick. One caveat thought: import("file.zip") vi...
- Neal Alexander (4/23) May 19 2008 You can also just have the data uncompressed and embedded in the exe and...
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.
May 16 2008
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.
May 16 2008
BCS Wrote:Reply to Tyro,Awesome... that did the trick. One caveat thought: import("file.zip") vice include(gfile.ziph). Thanks a lot for the speedy response.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.
May 16 2008
tyro wrote:BCS Wrote:You can also just have the data uncompressed and embedded in the exe and use UPX to pack the executable - works out fairly well for certain situations.Reply to Tyro,Awesome... that did the trick. One caveat thought: import("file.zip") vice include(gfile.ziph). Thanks a lot for the speedy response.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.
May 19 2008