Previous Next

Extracts (unzips) an individual entry from a ZIP file.

Returns the content of the unzipped entry.


<pc:ZipFileEntry filepath="file-path" entryname="relative-file-path"/>

The required filepath is a path leading to the ZIP file that you want to extract files from. The required entryname is a relative path leading to the entry you want to unzip.



This example outputs the contents of the "asset1.txt" file from the top-level directory "assets" in the ZIP file to the standard output (the console):

    jarentry = "assets\asset1.txt"   />
  <pc:ZipFileEntry filepath="{$jarfile}" entryname="{$jarentry}" />