-2
我成功地将文件存储在一个循环中。现在我有1000个文件从1到1000,我想阅读它们,但它不起作用。在循环中读取文件[julia]?
for i in 1:1000
h5open("path to file /file$i.h5", "w") do file
write(file, "a", x) # alternatively, say "@write file a"
end
end
写作效果很好。但是在阅读它时不起作用。
for i in 1:1000
h5open(" path to files/file$i.h5", "w") do file
read(file, "a", x) # alternatively, say "@write file a"
end
end
如何解决这个问题?
谢谢