Open a HF2/HFZ file for reading or writing.
hfzFile* hfzOpen(const char* lpFileName, long Format, const char* lpMode);
Name | Type | Description |
---|---|---|
lpFileName | const char* | The name of the file to be opened. |
Format | long | The type of file to be opened. May be either LIBHFZ_FORMAT_HF2 (uncompressed) or LIBHFZ_FORMAT_HF2_GZ (compressed). |
lpMode | const char* | The access mode to be used. May be “wb” (for writing), or “rb” (for reading). |
Null if an error occurred (file could not be opened), and otherwise a valid non-null handle to a hfzFile struct.
None.