January 19, 2007
Hello.

How can I read a gziped file?

Thanks, Andreas
January 19, 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.