Page tree

The license could not be verified: License Certificate has expired!

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


The following Python and C examples create a file, file.h5, and then close it. The resulting HDF5 file will only contain a root group:



Calling h5py.File with ‘w’ for the file access flag will create a new HDF5 file and overwrite an existing file with the same name.  “file” is the file handle returned from opening the file.  When finished with the file, it must be closed. When not specifying property lists, the default property lists are used: