What is the idiomatic way of doing...
HP Wei
hp@REDACTED
Thu Apr 10 05:46:51 CEST 2003
Hi
Three newbie questions:
Suppose I have a file:
% test.txt content
{"label1", "v1"}.
{"label2", "v2"}.
In erl, file:consult(test.txt) will give me a list of
tuples [{"label1","v1"},{"label2","v2"}].
Suppose test.txt is very big and it is better to extract one tuple at a
time to do something.
(1) what is the erlang-way of doing this ???
---------------------------------------
Suppose I have this file:
% test1.txt content
label1 v1
label2 v2
(2) Is there an idiomatic way of getting the list of tuples as in the
previous case ??
(3) What about getting one tuple at a time ???
THanks,
HP
More information about the erlang-questions
mailing list