<div>On Wed, May 30, 2012 at 5:16 PM, Roberto Ostinelli <span dir="ltr"><<a href="mailto:roberto@widetag.com" target="_blank">roberto@widetag.com</a>></span> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear list,<div><br></div><div>is there anything similar to Python's StringIO [1] in Erlang?</div><div><br></div><div>I've a library that only accepts files as params of a function, but I have everything I need into a variable that holds a string(). So what I would need to do is write this string to a temp file, and pass that one to the library; I'd like to avoid doing that if possible.</div>
<div><br></div><div>Thank you,</div><div><br></div><div>r.</div><div><br></div><div>[1] <a href="http://docs.python.org/library/stringio.html" target="_blank">http://docs.python.org/library/stringio.html</a></div></blockquote>
<div><br></div><div>It's undocumented, but there's the ram_file module:</div><div><br></div><a href="https://github.com/erlang/otp/blob/maint/lib/kernel/src/ram_file.erl">https://github.com/erlang/otp/blob/maint/lib/kernel/src/ram_file.erl</a><br>
<br><div>-bob</div><div> </div></div>