Merge branch 'master' of github.com:MarcusTL12/JuliaKursPVV

This commit is contained in:
2019-09-14 14:58:09 +02:00
22 changed files with 1158 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# IOBuffers are like writing to a file in memory. They are really efficient
# when creating strings and work like any other IO object we've worked with.
io = IOBuffer()
a = 42
write(io, "i = ")
print(io, a)
# To retrieve the written data from the buffer we call take!(). This returns
# a Vector{UInt8} so to interpret it as a string we call String()
s = String(take!(io))
println(s)