cat function Null safety

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

void cat(String path, {LineAction stdout = print}) =>
    waitForEx(core.cat(path, stdout: stdout));