File name depending on the index

Dear all,
I need to save an archive with a variable X by using the package FileIO and JLD2.
The variable X is a loop that depend on index i.
The command to save this variable is:

FileIO.save("Filename.jld2","RE",X)

Is possible change the file name with the index i, i.e, “Filename” depending on the i?
Best regards.

Do you mean?

julia> idx = 10
10

julia> "Filename$idx.jld2"
"Filename10.jld2"
3 Likes

Perfect!