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.




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

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 15:03:35 GMT 1996
Not for commercial use.