H5Fcreate

fnhid_t H5Fcreate(const char * filename, uint flags, hid_t fcpl_id, hid_t fapl_id)

Creates an HDF5 file.

Parameters

filenameName of the file to create
flagsFile access flags (H5F_ACC.TRUNC, H5F_ACC.EXCL, etc.)
fcpl_idFile creation property list identifier, or H5P_DEFAULT
fapl_idFile access property list identifier, or H5P_DEFAULT

Returns

A file identifier on success, or H5I_INVALID_HID on failure.