Write Term to File

Oliver Bollmann <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.