revZipOpenArchive

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
revZipOpenArchive <archivePath>, <mode>
Summary

Opens a zip archive for processing in LiveCode.

Introduced2.7.3
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
archivePath

The absolute path to the zip archive to open.

moderead: to open an existing archive for reading.
write: to create a new archive for writing to.
update: to open an existing or new archive for writing to.
Example
revZipOpenArchive tArchive, tMode
revZipOpenArchive the cArchive of me, "read"
Values
NameTypeDescription
The result

If revZipOpenArchive encounters an error, the result is set to an error code beginning with "ziperr". Otherwise the result will be empty.

RelatedCommand: revZipAddUncompressedItemWithFile, revZipAddUncompressedItemWithData, revZipDeleteItem, revZipCloseArchive, revZipExtractItemToVariable, revZipAddItemWithData
Constant: empty
Function: result
Securitydisk, network
Description

Use the revZipOpenArchive command to load a zip archive into memory and make it available for processing. This command needs to be issued before trying to get any information from, or make any changes to, an archive.

The revZipOpenArchive command should be followed by a matching revZipCloseArchive command, once the archive is no longer needed. Any changes made to an archive will not be written to disk until revZipCloseArchive is called.

Tagstext processing