====== hfzOpen ====== ===== Description ===== Open a HF2/HFZ file for reading or writing. ===== Function prototype ===== hfzFile* hfzOpen(const char* lpFileName, long Format, const char* lpMode); ===== Arguments ===== ^ 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). | ===== Return value ===== Null if an error occurred (file could not be opened), and otherwise a valid non-null handle to a hfzFile struct. ===== Comments ===== None.