Write Term to File

Oliver Bollmann oliver.bollmann@REDACTED
Tue Jan 26 23:52:20 CET 2021


How can i write term to file, for later using in file:consult?

I do:

R = io_lib:format("~tp.",[{"cn","漢"}]),
file:write_file(FileName,R)

But this gives:

{"cn",[28450]}.

I need:

{"cn","漢"}.

Any hints?

-- 
Grüße
Oliver Bollmann



More information about the erlang-questions mailing list