[erlang-questions] StringIO?
Bengt Kleberg
bengt.kleberg@REDACTED
Thu May 31 07:07:46 CEST 2012
Greetings,
I have written a string_io module that gives an IO object (like in
file:open/2).
It is old, but still works with epp_dodger (that at the time did not
work on strings. Has that changed?).
bengt
On Thu, 2012-05-31 at 02:16 +0200, Roberto Ostinelli wrote:
> Dear list,
>
>
> is there anything similar to Python's StringIO [1] in Erlang?
>
>
> 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.
>
>
> Thank you,
>
>
> r.
>
>
> [1] http://docs.python.org/library/stringio.html
More information about the erlang-questions
mailing list