January 19, 2007 read gziped file | ||||
---|---|---|---|---|
| ||||
Hello. How can I read a gziped file? Thanks, Andreas |
January 19, 2007 Re: read gziped file | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andreas Schönfelder | 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. |
Copyright © 1999-2021 by the D Language Foundation