Skip to content

Commit

Permalink
new example to read a large zip entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Tabin committed Jan 29, 2017
1 parent 75c7d53 commit bb52154
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,22 @@ string str2 = entry2.readAsText();
zf.close();
```

How to read a large entry from an archive:

```C++
#include "libzippp.h"
using namespace libzippp;

ZipArchive zf("archive.zip");
zf.open(ZipArchive::READ_ONLY);

ZipEntry largeEntry = z1.getEntry("largeentry");
std::ofstream ofUnzippedFile("largeFileContent.data");
largeEntry.readContent(ofUnzippedFile);
ofUnzippedFile.close();

zf.close();
```
How to add data to an archive:
Expand Down

0 comments on commit bb52154

Please sign in to comment.