# Iterating through JLDFile (JLD2)

**URL:** <https://discourse.julialang.org/t/iterating-through-jldfile-jld2/8218>\
**Category:** New to Julia\
**Tags:** jld2\
**Created:** [January 7, 2018, 1:51pm UTC](https://discourse.julialang.org/t/iterating-through-jldfile-jld2/8218 "2018-01-07T13:51:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdmcallister](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdmcallister/32/2324_2.png) [@sdmcallister](https://discourse.julialang.org/u/sdmcallister)\
**Post date:** [January 7, 2018, 1:51pm UTC](https://discourse.julialang.org/t/iterating-through-jldfile-jld2/8218/1 "2018-01-07T13:51:12Z")

</div>

If I have a JLDFile like this:

```julia
julia> jldopen("test.jld2","w") do f
       f["one"] = 1
       f["two"] = 2
       f["group1/three"] = 3
       f["group2/four"] = 4
       f["group3/one/five"] = 5
       end

julia> f = jldopen("test.jld2")
JLDFile C:\Users\sdmca\Desktop\test.jld2 (read-only)
 ├─� one
 ├─� two
 ├─� group1
 │ └─� three
 ├─� group2
 │ └─� four
 └─� group3
    └─� one
       └─� five

```

Is there a way to iterate through all of the labels? I am aware that you can do this:

```julia
julia> keys(f)
5-element Array{String,1}:
 "one"
 "two"
 "group1"
 "group2"
 "group3"

```

I’ve also looked at AbstractTrees.jl but haven’t had any success.
