diff options
Diffstat (limited to 'hl/examples')
-rw-r--r-- | hl/examples/ex_lite1.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hl/examples/ex_lite1.c b/hl/examples/ex_lite1.c index 85a011d..868253f 100644 --- a/hl/examples/ex_lite1.c +++ b/hl/examples/ex_lite1.c @@ -23,10 +23,13 @@ int main( void ) int data[6]={1,2,3,4,5,6}; herr_t status; + /* create a HDF5 file */ file_id = H5Fcreate ("ex_lite1.h5", H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); + /* create and write an integer type dataset named "dset" */ status = H5LTmake_dataset(file_id,"/dset",RANK,dims,H5T_NATIVE_INT,data); - + + /* close file */ status = H5Fclose (file_id); return 0; |