diff options
Diffstat (limited to 'examples/h5_chunk_read.c')
-rw-r--r-- | examples/h5_chunk_read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/h5_chunk_read.c b/examples/h5_chunk_read.c index 859e526..3460d9d 100644 --- a/examples/h5_chunk_read.c +++ b/examples/h5_chunk_read.c @@ -40,7 +40,7 @@ main () /* * 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); /* |