|
Something we did in my intro C class that helped me to understand the way input from files and out to files worked was take a text file in unix and count all the lines, characters (dont include spaces tabs or end lines), and remove the vowels and then print them into an output file. Once you can do this you will pretty much have the hang of these types of programs. I know that your example code was reading from stdin but it seems the book is working towards redirected in and out since it used EOF.
|