../pvss.htm menu.gif basics.gif

gzwrite()

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.gifCAUTION

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

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.

IconExample

 

Compresses the content of the variable "cont" and writes the result into the file test2.txt

Member of

 

Availability

File function

See also

 

page_top.gif

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved