<div dir="ltr"><div>The prompt can be anything. It is ignored when sending input requests to devices for which prompting has no meaning, for example files. It is there to preserve the API.<br><br></div>Robert<br><br></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 29 May 2014 16:35, Ivan Uemlianin <span dir="ltr"><<a href="mailto:ivan@llaisdy.com" target="_blank">ivan@llaisdy.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Aha thanks. Special atoms. Also standard_error.<span class="HOEnZb"><font color="#888888"><br>
<br>
Ivan</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On 29/05/2014 15:24, Roger Lipscombe wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
1> io:get_line(standard_io, foo).<br>
foohaskgjdhgsdg<br>
"haskgjdhgsdg\n"<br>
2> io:get_line(standard_io, enter_something).<br>
enter_somethingsdgdsgsgsad<br>
"sdgdsgsgsad\n"<br>
3> io:get_line(standard_io, 'meh>').<br>
meh>fdasfhjdgfsadg<br>
"fdasfhjdgfsadg\n"<br>
<br>
On 29 May 2014 15:07, Ivan Uemlianin <<a href="mailto:ivan@llaisdy.com" target="_blank">ivan@llaisdy.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear All<br>
<br>
Quick question!<br>
<br>
In io:get_line(IoDevice, Prompt), what is the point of Prompt? Just using a<br>
random atom seems to work fine.<br>
<br>
1> {ok,F} = file:open("data.txt",[read, {encoding, utf8}]).<br>
{ok,<0.36.0>}<br>
2> io:get_line(F, x).<br>
"first line\n"<br>
3> io:get_line(F, y).<br>
"second line\n"<br>
% ... etc<br>
<br>
Thanks<br>
<br>
Ivan<br>
<br>
<br>
--<br>
==============================<u></u>==============================<br>
Ivan A. Uemlianin PhD<br>
Llaisdy<br>
Speech Technology Research and Development<br>
<br>
<a href="mailto:ivan@llaisdy.com" target="_blank">ivan@llaisdy.com</a><br>
<a href="http://www.llaisdy.com" target="_blank">www.llaisdy.com</a><br>
<a href="http://llaisdy.wordpress.com" target="_blank">llaisdy.wordpress.com</a><br>
<a href="http://github.com/llaisdy" target="_blank">github.com/llaisdy</a><br>
<a href="http://www.linkedin.com/in/ivanuemlianin" target="_blank">www.linkedin.com/in/<u></u>ivanuemlianin</a><br>
<br>
festina lente<br>
==============================<u></u>==============================<br>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
</blockquote></blockquote>
<br>
-- <br>
==============================<u></u>==============================<br>
Ivan A. Uemlianin PhD<br>
Llaisdy<br>
Speech Technology Research and Development<br>
<br>
<a href="mailto:ivan@llaisdy.com" target="_blank">ivan@llaisdy.com</a><br>
<a href="http://www.llaisdy.com" target="_blank">www.llaisdy.com</a><br>
<a href="http://llaisdy.wordpress.com" target="_blank">llaisdy.wordpress.com</a><br>
<a href="http://github.com/llaisdy" target="_blank">github.com/llaisdy</a><br>
<a href="http://www.linkedin.com/in/ivanuemlianin" target="_blank">www.linkedin.com/in/<u></u>ivanuemlianin</a><br>
<br>
festina lente<br>
==============================<u></u>==============================<br>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>