<div dir="ltr">> "<span style="font-size:12.8px">2. Is there a way to create Singleton objects in Erlang other than using ets?</span>"<div><br></div><div>Singleton objects are typically registered gen_servers in Erlang. They can be registered locally per node or globally per cluster. You probably want to register the reader and the writer globally and start them on their respective nodes. For development they can be started on the same node as well. For simplicity the IoDevice could be stored in the state of each gen_server. Open the files in the init/1 callback of your gen_server.</div><div><br></div><div>See also:</div><div><a href="http://www.erlang.org/doc/design_principles/gen_server_concepts.html">http://www.erlang.org/doc/design_principles/gen_server_concepts.html</a><br></div><div><br></div><div>Br,</div><div>Andras</div><div class="gmail_extra"><div class="gmail_quote"><br></div></div></div>