INSERT FILE |
Insert and Compress File into ZIP Archive |
INSERT FILE filename$ TO (chan [, ERR=stmtref] [,KEY=string$])
filename$ |
Path and filename of the file to compress and add to the ZIP file. Note: |
chan |
Open file channel of the ZIP archive in which to insert the file. |
string$ |
Path and filename of the added file as recorded in the ZIP archive. (Required only if this is different from filename$.) |
stmtref |
Program line number or statement label to which to transfer control. |
The INSERT FILE directive will compress a specified file on your system and append it to the end of the ZIP archive.
(The INSERT FILE directive was added in PxPlus 2016.)
EXTRACT FILE Extract Compressed File from ZIP Archive
Accessing ZIP Files
open (hfn)"test.zip"
insert file "test" to (lfo)
close (lfo)