Opens a gzip (.gz) file for reading or writing.
xzopen can be used to read a file which is not in gzip format; in this case xzread will directly read from the file without decompression.
xzopen returns a NULL fileHandle and 0 as Result if the file could not be opened or if there was insufficient memory to allocate the (de)compression state.
path Full pathname of file to open/create. |
mode Combine following into one mode-string: Readmode: "r","r+","rb" or "r+b" r=read b=binary (also text with CR and/or LF) +=allows writing too (setting extrafield) Writemode: "w","w+", "wb" or "w+b" w=write b=binary (also text with CR and/or LF) +=allows reading too (to read header-fields) Compressionlevel (in Writemode only): "0" = no compression, "1".."9" for higher but slower compression Strategy (in Writemode only): "f" for filtered data "h" for Huffmann only compression |
fileHandle |
Result |