Extracted from Pike v7.4 release 117 at 2004-11-02.
pike.ida.liu.se
[Top]
predef::
Gz
Gz.File

Method Gz.File()->open()


Method open

int open(string|int file, void|string mode)

Parameter file

Filename or filedescriptor of the gzip file to open.

Parameter mode

mode for the file. Defaults to "rb". May be one of the following:

rb

read mode

wb

write mode

ab

append mode

For the wb and ab mode, additional parameters may be specified. Please se zlib manual for more info.

Returns

non-zero if successful.