Routines (alphabetical) > Routines: H > HDF5 Routines > H5F_OPEN

# H5F_OPEN

The H5F_OPEN function opens an existing HDF5 file.

## Syntax

Result = H5F_OPEN(Filename [, /WRITE])

## Return Value

Returns the file identifier number. This identifier can be released with the H5F_CLOSE.

## Arguments

### Filename

A string representing the name of the file to be accessed.

## Keywords

### WRITE

If set the file is open for both reading and writing. The default is to open the file in read_only mode.

## Version History

5.6 | Introduced
6.2 | Added WRITE keyword.

## See Also

H5F_CLOSE, H5F_IS_HDF5