[erlang-questions] What does Prompt in io:get_line/2 do?
Ivan Uemlianin
ivan@REDACTED
Thu May 29 16:07:01 CEST 2014
Dear All
Quick question!
In io:get_line(IoDevice, Prompt), what is the point of Prompt? Just
using a random atom seems to work fine.
1> {ok,F} = file:open("data.txt",[read, {encoding, utf8}]).
{ok,<0.36.0>}
2> io:get_line(F, x).
"first line\n"
3> io:get_line(F, y).
"second line\n"
% ... etc
Thanks
Ivan
--
============================================================
Ivan A. Uemlianin PhD
Llaisdy
Speech Technology Research and Development
ivan@REDACTED
www.llaisdy.com
llaisdy.wordpress.com
github.com/llaisdy
www.linkedin.com/in/ivanuemlianin
festina lente
============================================================
More information about the erlang-questions
mailing list