Trouble Read Fixed Length Strings

Hi,

I’m brand new to using the HDF5 library and I’m having trouble trying to read some fixed length strings from an HDF5 file that was given to me. I am able to read the variable length strings.

The variable length strings have this format:
DATATYPE H5T_STRING {
STRSIZE H5T_VARIABLE;
STRPAD H5T_STR_NULLTERM;
CSET H5T_CSET_UTF8;
CTYPE H5T_C_S1;
}
DATASPACE SIMPLE { ( 24 ) / ( 24 ) }
DATA {
(0): “Cut_1”, “Cut_2”, “Cut_3”, “Cut_4”, “Cut_5”, “Cut_6”, “Cut_7”,
(7): “Cut_8”, “Cut_9”, “Cut_10”, “Cut_11”, “Cut_12”, “Cut_13”,
(13): “Cut_14”, “Cut_15”, “Cut_16”, “Cut_17”, “Cut_18”, “Cut_19”,
(19): “Cut_20”, “Cut_21”, “Cut_22”, “Cut_23”, “Cut_24”
}

and I use this code to read the array of strings:
/*
* Open file
*/
file = H5Fopen (FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(loc_id, name, H5P_DEFAULT);
datatype = H5Dget_type(dset);