Next:
Formatted IO
Up:
File, Input, and Output
Previous:
Output
Contents
Input
The built-in function
readline
can be used to read a line from the command input. For example, after the following,
mesg = readline();
a character string is read from keyboard until enter is hit. Besides
readline
,
sscanf
and
fscanf
can read formatted input from a string or a file.
oz 2009-12-22