# Accumulating strings dynamically

**URL:** <https://discourse.julialang.org/t/accumulating-strings-dynamically/51209>\
**Category:** General Usage\
**Created:** [December 3, 2020, 4:42pm UTC](https://discourse.julialang.org/t/accumulating-strings-dynamically/51209 "2020-12-03T16:42:04Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [December 3, 2020, 4:46pm UTC](https://discourse.julialang.org/t/accumulating-strings-dynamically/51209/3 "2020-12-03T16:46:43Z")

</div>

No, write to a buffer: create `buf = IOBuffer()`, accumulate characters as `print(buf, c)`, and then do `String(take!(buf))` at the end.

---

_[View the full topic](https://discourse.julialang.org/t/accumulating-strings-dynamically/51209)._
