...
Programming Example
Description
See HDF5 Introductory Examples for the examples used in the Learning the Basics tutorial.
The example shows how to read and write an existing dataset. It opens the file created in the previous example, obtains the dataset identifier for the dataset /dset
, writes the dataset to the file, then reads the dataset back. It then closes the dataset and file.
Note that H5S_ALL
is passed in for both the memory and file dataspace parameters in the read and write calls. This indicates that the entire dataspace of the dataset will be read or written to. H5S_ALL
by itself does not necessarily have this meaning. See the Reference Manual entry for H5Dread or H5Dwrite for more information on using H5S_ALL
.
See HDF5 Introductory Examples for the examples used in the Learning the Basics tutorial. There are examples for several other languages, including Java.
For details on compiling an HDF5 application: [ Compiling HDF5 Applications ]
...