<div dir="ltr"><div>hi Yestin</div><div><br></div><div>the Erlang Language Server has a module that given a string implements "a subset of the io protocol in order to only support reading operations." <a href="https://github.com/erlang-ls/erlang_ls/blob/master/src/els_io_string.erl">https://github.com/erlang-ls/erlang_ls/blob/master/src/els_io_string.erl</a></div><div>(given that it exists in erlang_ls I assume there is no such implementation in Erlang/OTP itself)</div><div><br></div><div>hope this helps<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 13, 2021 at 8:41 AM Yestin L. Harrison <<a href="mailto:yestin@ylh.io">yestin@ylh.io</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Say I have some black box that expects some IO server to read from; what is the recommended way of spawning such a server that can just be passed some string/chardata()/binary/whatever and serve it in response to io:request(...)? Am I going to have to write something like that myself or is there something in the standard libraries that I'm missing?</blockquote></div>