# ZipAddFile

Definition: | include builtins\LiteZip.e object res = ZipAddFile(atom hzip, string dest, string src=dest)
Description: | Adds a single file to a zip archive. hzip: the result of a successful call to ZipCreateFile(). dest: the (relative) path the zip should contain. src: the (ideally absolute) path of the file to include. src can be a relative or absolute directory, and of course it can be the same as dest, provided you are in the appropriate directory. Returns ZR_OK (=0) or a string error message.
pwa/p2js: | Not supported
Example: | Copy
    include builtins\LiteZip.e

    atom hzip = ZipCreateFile("test.zip")

    object res = ZipAddFile(hzip,`builtins\base64.e`,`C:\Program Files (x86)\Phix\builtins\base64.e`)

    ZipClose(hzip)
See Also: | ZipCreateFile, ZipClose