Getting user input

There are three main ways to acquire user input:

  1. By reading the command-line arguments of a program
  1. By asking the user for input
  1. 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.103.219