| 35 | } |
| 36 | |
| 37 | void extractFile(std::string zipname, std::string filename, std::string target) |
| 38 | { |
| 39 | ziputils::unzipper zipFile; |
| 40 | zipFile.open(zipname.c_str()); |
| 41 | zipFile.openEntry(filename.c_str()); |
| 42 | std::ofstream wFile; |
| 43 | wFile.open(target, std::ios_base::binary | std::ios_base::out); |
| 44 | std::string dumped = zipFile.dump(); |
| 45 | wFile.write(dumped.c_str(), dumped.size()); |
| 46 | wFile.close(); |
| 47 | } |
| 48 | } |