[ HDF5 High Level Tutorial Top ] [ Next ] [ Prev ]

H5TB: HDF5 Table
Tables

Append records to a table

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 );

Programming Example

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.

NOTE: To download a tar file of all of the examples, including a Makefile, please go to the Index page.

 


HDF Help Desk
Last modified: November 18, 2002