tail function

TailProgress tail(
  1. String path,
  2. int lines
)

Returns count lines from the end of the file at path.

tail('/var/log/syslog', 10).forEach((line) => print(line));

Throws a TailException exception if path is not a file.

Implementation

TailProgress tail(String path, int lines) =>
    TailProgress._internal(path, lines);