Below are a few simple HDF5 programs (for API version >1.8.0) illustrating the most basic, and commonly used, functionality of the HDF5 library. They should be useful for the HDF5 beginner... The makefile is here.
The basics: Reading and Writing
- hdf5NewFile.c
- Minimal example showing how to create a new HDF5 file and fill it up with data.
- hdf5NewFileEC.c
- How to produce a new HDF5 file with error checking.
- hdf5ReadModifyWrite.c
- How to read from an HDF5 file, modify the data, and write it back.