There are three main ways to acquire user input:
- By reading the command-line arguments of a program
- By asking the user for input
- By reading external files
This section will present the first two ways. Should you wish to learn how to read an external file, visit Chapter 8, Telling a Unix System What to Do.