You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`filename`: Shall be a character expression containing the file name from which to load the rank-2 `array`.
25
25
26
-
`array`: Shall be an allocatable rank-2 array of type `real`, `complex` or `integer`.
26
+
`array`: Shall be an allocatable rank-2 array of type `real`, `complex` or `integer` or a allocatable rank-1 `character` array.
27
27
28
28
`skiprows` (optional): Skip the first `skiprows` lines. If skipping more rows than present, a 0-sized array will be returned. The default is 0.
29
29
30
30
`max_rows` (optional): Read `max_rows` lines of content after `skiprows` lines. A negative value results in reading all lines. A value of zero results in no lines to be read. The default value is -1.
31
31
32
-
`fmt` (optional): Fortran format specifier for the text read. Defaults to the write format for the data type. Setting fmt='*' will specify list directed read.
32
+
`fmt` (optional): Fortran format specifier for the text read. Defaults to the write format for the data type. Setting fmt='*' will specify list directed read. Valid only for `real`, `complex` and `integer`.
33
33
34
+
`skip_blank_lines` (optional): Will ignore blank lines in the text file. Valid only for `character` array.
34
35
35
36
36
37
### Return value
37
38
38
-
Returns an allocated rank-2 `array` with the content of `filename`.
39
+
Returns an allocated rank-2 `array` with the content of `filename`, or a rank-1 `character` array where the length is the longest line of the file.
0 commit comments