diff --git a/03_inputs_and_outputs/README.md b/03_inputs_and_outputs/README.md index a5c361434eaff43c16537fd7704524ee20bd62f3..52e526d185bd92fce062052d5c4e0565288c1d2d 100644 --- a/03_inputs_and_outputs/README.md +++ b/03_inputs_and_outputs/README.md @@ -1,3 +1,15 @@ # Basic Input -If you want to pass arguments to your program, you can add them to `main`. +These examples illustrate command line arguments, and reading a file. + +``` +demo@linux:03_inputs_and_outputs$ make +gcc -Wall -O3 -o add_integers add_integers.c +gcc -Wall -O3 -o read_file read_file.c + +demo@linux:03_inputs_and_outputs$ ./add_integers 1 2 +1 + 2 = 3 + +demo@linux:03_inputs_and_outputs$ ./read_file +This text is in a file. +```