Storage-based array that implements @views?

You could just call write in a loop…, e.g.

open("mmap.bin", "w") do io
    write(io, 10^10)
    for i = 1:1000
        write(io, rand(10^7))
    end
end
2 Likes