Skip to content

Instantly share code, notes, and snippets.

@JonasIsensee
JonasIsensee / writetostream.jl
Created July 6, 2020 19:58
Using JLD2.jl to serialize data into an io stream
using JLD2
cd(@__DIR__)
isfile("testfile.jld2") && rm("testfile.jld2")
io = open("testfile.jld2", "w+")
dict_to_write = Dict(
"var1" => 1,
"var2" => "a string",