Batch Mode Simulation : File Operation Statements : READ Statement

READ Statement

The READ statement takes input from the keyboard or a file. The information read is assigned to any of the variable types except file.

READ ( [file_variable, ] x1 [, x2 . . . ] );

The first parameter is optionally a file identifier, indicating the source of the read is a file. If not provided, the read is done from standard input (keyboard).