Returns number of lines in given file by counting new lines. Sets
error
to E_IO
if opening the file failed, and to E_EMPTY
if
the file has no lines.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | path |
File path. |
||
integer, | intent(out), | optional | :: | error |
Error code. |