0Pricing
Dart Academy · Lesson

Stdin, Stdout, and Process Args

Build interactive CLI programs.

Three Standard Streams

Command-line programs talk through three channels: stdin for input, stdout for normal output, and stderr for errors.

stdout vs print

print adds a newline and goes to stdout. For finer control, write directly with stdout.write and no extra newline appears.

stdout.write('Loading');

All lessons in this course

  1. Reading and Writing Files
  2. Directories, Paths, and FileSystemEntity
  3. Streaming Large Files
  4. Stdin, Stdout, and Process Args
← Back to Dart Academy