tail function

Stream<String> 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

Stream<String> tail(String path, int lines) => _Tail().tail(path, lines);