<div dir="ltr">Name = term() %%http://www.erlang.org/doc/man/dets.html#type-tab_name <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>