readln

Reads an integer, floating point number, or string.

Syntax

readln modifiers variable

Inputs

modifiers
Either strict, mangle, or nothing
variable
The name of the variable to read

Comments

This general purpose input statement has many specialized variations and modifiers which are addressed elsewhere (see mangle, strict, until).

readln differs from read in that it always reads to the end of the line. The next input operation addresses the start of the following line.

Example

readIn a                              // read an integer
readIn request                        // read a request
readIn component                      // read a component
readIn strict "BEGIN"                 // read a word and compare it
readIn mangle "Item #%read" longname  // read and convert request name