# H5write analog for JLD

**URL:** https://discourse.julialang.org/t/h5write-analog-for-jld/7917
**Category:** General Usage
**Tags:** jld
**Created:** [December 22, 2017, 12:19pm UTC](https://discourse.julialang.org/t/h5write-analog-for-jld/7917 "2017-12-22T12:19:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)
#### Post date: [December 22, 2017, 12:19pm UTC](https://discourse.julialang.org/t/h5write-analog-for-jld/7917/1 "2017-12-22T12:19:13Z")

</div>

```julia
using JLD

# create dummy file
save("test.jld", "x", rand(2,2))

# I now want to add another element to "test.jld"
# I can't do save("test.jld", "y", rand(2,2)) because
# this creates a new file that only contains y (x is lost).

# Of course I can do:
jldopen("asd.jld", "r+") do f
  write(f, "y", rand(2,2))
end

```

For HDF5 I would just do `h5write("test.jld", "y", rand(2,2))`. Why is there no `jldwrite("test.jld", "y", rand(2,2))` convenience function?

At least I couldn’t find it anywhere.
