Using IOBuffer with append

No. append is false by default.
Here is an example to show the difference:

io = IOBuffer();
write(io, "JuliaLang is a GitHub organization.", " It has many members.");
seekstart(io);
write(io, "I'm excited to learn Julia");
println(String(take!(io)));
close(io);

Output:

I'm excited to learn Julianization. It has many members.
io = IOBuffer(append=true);
write(io, "JuliaLang is a GitHub organization.", " It has many members.");
seekstart(io);
write(io, "I'm excited to learn Julia");
println(String(take!(io)));
close(io);

Output:

JuliaLang is a GitHub organization. It has many members.I'm excited to learn Julia

The seekstart() has no effect if append=true.

3 Likes