parse external files -- which library files call ?
Ulf Wiger (AL/EAB)
ulf.wiger@REDACTED
Fri Oct 28 14:08:01 CEST 2005
Martin Carlson
> You are probably looking for file:consult or file:eval.
Agreed, but don't forget file:script().
It does the same thing as file:eval(), but returns the
value of the last expression, rather than just 'ok'.
A nice way to generate data to be read later using file:consult()
is io:format(FileDescr, "~p.~n", [Term]), alt.
lists:foreach(fun(X) -> io:format(FD, "~p~n", [X]) end, Terms).
/Uffe
More information about the erlang-questions
mailing list