- 积分
- 22
- 注册时间
- 2010-10-7
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2010-12-20 20:46:15
|
显示全部楼层
来自 河北秦皇岛
Reads data from a file and fills in an array parameter vector or matrix. Data are read from a formatted file or, if the menu is off [/MENU,OFF] and Fname is blank, from the next input lines. The format of the data to be read must be input immediately following the *VREAD command. The format specifies the number of fields to be read per record, the field width, and the placement of the decimal point (if none specified in the value). The read operation follows the available FORTRAN FORMAT conventions of the system (see your system FORTRAN manual). Any standard FORTRAN real format (such as (4F6.0), (E10.3,2X,D8.2), etc.) or alphanumeric format (A) may be used. Alphanumeric strings are limited to a maximum of 8 characters for any field (A8). For storage of string arrays greater than 8 characters, the *SREAD command can be used. Integer (I) and list-directed (*) descriptors may not be used. The parentheses must be included in the format and the format must not exceed 80 characters (including parentheses). The input line length is limited to 128 characters. A starting array element number must be defined for the result array parameter vector (numeric or character). For example, entering these two lines: *VREAD,A(1),ARRAYVAL (2F6.0) |
|