Check if Variable Exists in JLD File

Viewed 323

If I save a variable to a JLD file like this:

file["myVar"] = data

How can I check if it exists?

if exists(file, "myVar")
    println( file["myVar"] )
end
1 Answers
Related