read
Reads an integer, floating point number or short string (one word or token).
Syntax
read modifiers variable
Inputs
- modifiers
- Options include strict, mangle, until
- 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).
Example
read a                              // read an integer
read request                        // read a request
read component                      // read a component
read strict "BEGIN"                 // read a word and compare it
read mangle "Item #%read" longname  // read and convert request name