dm_file_line_count Function

public function dm_file_line_count(path, error) result(n)

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.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: path

File path.

integer, intent(out), optional :: error

Error code.

Return Value integer(kind=i8)