diff options
Diffstat (limited to 'examples/h5_compound.c')
-rw-r--r-- | examples/h5_compound.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/h5_compound.c b/examples/h5_compound.c index a5ad77b..05add7d 100644 --- a/examples/h5_compound.c +++ b/examples/h5_compound.c @@ -62,7 +62,7 @@ space = H5Pcreate_simple(RANK, dim, NULL); /* * Create the file. */ -file = H5Fcreate(FILE, H5ACC_OVERWRITE, H5C_DEFAULT, H5C_DEFAULT); +file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5C_DEFAULT, H5C_DEFAULT); /* * Create the memory data type. @@ -93,7 +93,7 @@ H5Fclose(file); /* * Open the file and the dataset. */ -file = H5Fopen(FILE, H5ACC_DEFAULT, H5C_DEFAULT); +file = H5Fopen(FILE, H5F_ACC_RDONLY, H5C_DEFAULT); dataset = H5Dopen(file, DATASETNAME); |