next up previous contents
Next: Array I/O Example Up: Arrays Previous: Printing Arrays

Input of Arrays

Elements of an array can be read in and assigned to the array in array element order, for example,

    READ*, A

would read data from the standard input and assign to the elements of A. The input data may be punctuated by any number of carriage returns which are simply ignored.

Sections of arrays can also be input, for example,

    READ*, A(::2,::2)

is perfectly valid and will assign to the indicated subsection of A.

Return to corresponding overview page gif




next up previous contents
Next: Array I/O Example Up: Arrays Previous: Printing Arrays

©University of Liverpool, 1997
Wed May 28 20:20:27 BST 1997
Not for commercial use.