- Specify property lists (or use the defaults).
- Create the file.
- Close the file (and property lists if needed).
This example creates The following Python and C examples create a file,
file.h5, and then closes close it:
Following are examples to create a file file.h5 using Python and C.
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: