REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: input


Inputs a string from the console. New-line character is removed.

See also:

ask   confirm  


Returns a string from the standard input device (normally the keyboard, but can also be a file or an interactive shell). The string does not include the new-line character used to terminate it.

The /HIDE refinement hides input with "*" characters.

prin "Enter a name: "
name: input
print [name "is" length? name "characters long"]
Luke is 4 characters long

  TOC < Back Next > - WIP Wiki Feedback Admin