To append records to a table we use the H5TBappend_records
function. This function adds records to the end of the table. The dataset
is extended to hold the new records. In the example, we add a new record by
calling
H5TBappend_records( file_id, "Table1", 1, dst_size, dst_offset, &particle[0] );
To read from disk the records just appended we use the function H5TBread_records
H5TBread_records( file_id, "Table1", NRECORDS, NRECORDS+1, dst_size,
dst_offset, particle_out );
The following C program provide an example of how to append records a table. The corresponding HDF5 file that is generated is also referenced here. You can use an HDF5 file browser to access this file by clicking on the link below.
ex_table_02.c
ex_table_02.h5
NOTE: To download a tar file of all of the examples, including a Makefile, please go to the Index page.