std.zip and a large archive
bearophile via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jul 19 05:32:37 PDT 2014
Marc Schütz:
> import std.stdio, std.zip, std.file, std.mmfile;
>
> int main()
> {
> auto mmfile = new MmFile(File("c:/test.zip", "rb"));
> auto zip = new ZipArchive(mmfile[]);
> foreach (item; zip.directory) {
> writeln("processing ", item.name, " ...");
> // processing item...
> }
> return 0;
> }
This could be added to the ZipArchive online docs.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list