<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Ah, this is R16 feature! Thanks!</div><div><br></div><div>- Dmitry</div><div><br><div><div>On 07 Feb 2014, at 13:21, Evgeny M <<a href="mailto:donpedrothird@gmail.com">donpedrothird@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Name = term() %%<a href="http://www.erlang.org/doc/man/dets.html#type-tab_name">http://www.erlang.org/doc/man/dets.html#type-tab_name</a> <br><br>пятница, 7 февраля 2014 г., 15:09:58 UTC+4 пользователь Dmitry Kolesnikov написал:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Hello,
<br>
<br>I was constantly having a trouble with dets:open_file interface.
<br>
<br>open_file(Name, Args) -> {ok, Name} | {error, Reason}
<br> Name = atom()
<br>
<br>Using atom() as dets identifier is not always practical, however I see the major reasons behind it.
<br>
<br>Recently I’ve discovered that following statements works perfectly:
<br>
<br>{ok, R1} = dets:open_file(erlang:make_<wbr>ref(), [{file, "/tmp/myfile"}, {access, read}]).
<br>This is “long seemed” solution. When I need to temporary open dets file for reading.
<br>
<br>do you have any insides? how safe is that to put into production?
<br>
<br>Best Regards,
<br>Dmitry
<br>______________________________<wbr>_________________
<br>erlang-questions mailing list
<br><a href="javascript:" target="_blank" gdf-obfuscated-mailto="AkOok-WQIysJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">erlang-q...@erlang.org</a>
<br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Ferlang.org%2Fmailman%2Flistinfo%2Ferlang-questions\46sa\75D\46sntz\0751\46usg\75AFQjCNH15VBDH9qL9o1Zx3x6ZeLmwvUvTg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Ferlang.org%2Fmailman%2Flistinfo%2Ferlang-questions\46sa\75D\46sntz\0751\46usg\75AFQjCNH15VBDH9qL9o1Zx3x6ZeLmwvUvTg';return true;">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a>
<br></blockquote></div></blockquote></div><br></div></body></html>