diff options
author | Thomas White <taw@bitwiz.org.uk> | 2009-10-16 11:21:15 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2009-10-16 11:21:15 +0200 |
commit | d4091423728c46d15e1f771be032aa62f2bf32e9 (patch) | |
tree | ffcdfb7d637e6e3ecc2e67afea8a94a5a91d58c8 | |
parent | 699f3fa9f21f24170dbd5d7091c1c374f4948aef (diff) |
Overwrite old file if present
-rw-r--r-- | src/hdf5-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c index 2992357d..9ece8ada 100644 --- a/src/hdf5-file.c +++ b/src/hdf5-file.c @@ -28,7 +28,7 @@ int hdf5_write(const char *filename, const uint16_t *data, hsize_t size[2]; hsize_t max_size[2]; - fh = H5Fcreate(filename, H5F_ACC_EXCL, H5P_DEFAULT, H5P_DEFAULT); + fh = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); if ( fh < 0 ) { fprintf(stderr, "Couldn't create file: %s\n", filename); return 1; |