[erlang-questions] ets:file2tab/1 question

Per Melin per.melin@REDACTED
Wed Jun 11 19:53:08 CEST 2008


2008/6/11 DougEdmunds <dougedmunds@REDACTED>:
> In the docs for the ets module:
>
> file2tab(Filename) -> {ok,Tab} | {error,Reason}
>
> Types:
>
> Filename = string() | atom()
> Tab = tid() | atom()
> Reason = term()
>
> Can someone provide an example where
> Tab returns an atom() and not a tid()?

1> ets:new(foo, [named_table]).
foo
2> ets:tab2file(foo, "foo.ets").
ok
3> ets:delete(foo).
true
4> ets:file2tab("foo.ets").
{ok,foo}



More information about the erlang-questions mailing list