Method Gz._file()->open()
- Method
open
intopen(string|int|Stdio.Streamfile,void|stringmode)- 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 file operations. Defaults to read only. The following mode characters are unique to Gz.File.
"0"Values 0 to 9 set the compression level from no compression to maximum available compression. Defaults to 6.
"1""2""3""4""5""6""7""8""9""f"Sets the compression strategy to FILTERED.
"h"Sets the compression strategy to HUFFMAN_ONLY.
- Note
If the object already has been opened, it will first be closed.