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
- Reading and Writing Files
- Directories, Paths, and FileSystemEntity
- Streaming Large Files
- Stdin, Stdout, and Process Args