read gziped file
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Fri Jan 19 07:44:02 PST 2007
Andreas Sch������������������������������� wrote:
> Hello.
>
> How can I read a gziped file?
The Phobos standard library (provided with DMD) includes zlib
(www.zlib.net), which can handle gzip-compressed files. Unfortunately,
std.zlib and std.zip don't seem to wrap the gzip support. You can still
use the raw C API in module etc.c.zlib, though.
The manual for it is at http://www.zlib.net/manual.html. From what I can
tell, gzopen, gzread an gzclose are the functions you want.
Note: I've never used this myself.
More information about the Digitalmars-d
mailing list