Creates an HDF5 file filename, if the file already exists it will be truncated. filename is the name of the file to be created. Returns the hid_t reference upon success otherwise -1.