digitalmars.D - read gziped file
- Andreas Schönfelder (3/3) Jan 19 2007 Hello.
- Frits van Bommel (8/11) Jan 19 2007 The Phobos standard library (provided with DMD) includes zlib
Hello. How can I read a gziped file? Thanks, Andreas
Jan 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.
Jan 19 2007