CtrlZlib ia a shared library with functions for data compression. It is based on libz (gzip, gunzip). The function compresses the content and writes the result into the file path. Path is an absolute file name. If the extension is not ".gz", the extension is added. CAUTION Under Solaris a zlib (libz.so) version 1.2.3 is required for the use of the zip functions. Download the zlib version from the internet. |
Synopsis
int gzwrite(string path, string|blob content); |
Parameters
Parameter |
Meaning |
path |
The content to be compressed. |
content |
The parameter the compressed content is written to. |
Return value
|
Error
|
Description
The function compresses the content and writes the result into the file path. Path is an absolute file name. If the extension is not ".gz", the extension is added. |
Example
Compresses the content of the variable "cont" and writes the result into the file test2.txt |
#uses "CtrlZlib"
main() { |
Member of
|
Availability
File function |
See also
|
V 3.11 SP1
Copyright