| 116 | } |
| 117 | } |
| 118 | void extractFile(std::string zipname, std::string filename, std::string target) |
| 119 | { |
| 120 | ziputils::unzipper zipFile; |
| 121 | zipFile.open(zipname.c_str()); |
| 122 | zipFile.openEntry(filename.c_str()); |
| 123 | std::ofstream wFile; |
| 124 | wFile.open(target, std::ios_base::binary | std::ios_base::out); |
| 125 | std::string dumped = zipFile.dump(); |
| 126 | wFile.write(dumped.c_str(), dumped.size()); |
| 127 | wFile.close(); |
| 128 | } |
| 129 | } |