[erlang-questions] In-memory files

Mikhail Sobolev <>
Fri Jun 17 14:22:17 CEST 2011


Hi,

As part of my application I get a binary that needs to be processed by
a function that only accepts io_device().

After checking the source code (14B03), I found that it's possible to
supply 'ram' as one of the options to file:open/2 and provide the
binary as the first parameter.  However the aforementioned function
use file:read_line/1 and the ram_file module does not implement the
necessary function.

Can somebody please suggest how to work out this situation?

--
Misha



More information about the erlang-questions mailing list