[−][src]Macro scanln::scanln
The inverse of println
Invocations of scanln
expand to an expression retuning a String
that
contains a line of input from stdin
. It can be invoked with arguments
identical to those of print
, and if so, those arguments will be used
to generate a prompt on stdout
. Input will begin on the same line that the
prompt ends, if any. If no arguments are provided, input will start where
the cursor is, which is likely to be on its own empty line.