cat function

Future<void> cat(
  1. String path, {
  2. LineAction stdout = print,
})

Prints the contents of the file located at path to stdout.

cat("/var/log/syslog");

If the file does not exists then a CatException is thrown.

Implementation

Future<void> cat(String path, {LineAction stdout = print}) async =>
    Cat().cat(path, stdout: stdout);