Pike v8.0 release 1738

Method Gz._file()->open()


Method open

int open(string|int|Stdio.Stream file, void|string mode)

Description

Opens a file for I/O.

Parameter file

The filename or an open filedescriptor or Stream for the GZip file to use.

Parameter mode

Mode for the fileoperations. Defaults to read only.

Note

If the object already has been opened, it will first be closed.