# Emulate File.stream! for a string variable

**URL:** <https://forum.elixirforum.com/t/emulate-file-stream-for-a-string-variable/4983>\
**Category:** Questions\
**Tags:** testing, streams\
**Created:** [May 8, 2017, 5:36am UTC](https://forum.elixirforum.com/t/emulate-file-stream-for-a-string-variable/4983 "2017-05-08T05:36:13Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![NobbZ](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/nobbz/32/27235_2.png) [@NobbZ](https://forum.elixirforum.com/u/NobbZ)\
**Post date:** [May 9, 2017, 9:08am UTC](https://forum.elixirforum.com/t/emulate-file-stream-for-a-string-variable/4983/7 "2017-05-09T09:08:59Z")

</div>

Because `String.split/2` and `String.splitter/2` will remove the split-points, but the OP said he needs them intact.

---

_[View the full topic](https://forum.elixirforum.com/t/emulate-file-stream-for-a-string-variable/4983)._
