cat function

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}) =>
// ignore: discarded_futures
    waitForEx(core.cat(path, stdout: stdout));