View Single Post
Old 04-03-2003, 06:10 PM   #9 (permalink)
TheDreamless
Registered User
 
TheDreamless's Avatar
 
Join Date: Apr 2003
Posts: 10
TheDreamless is on a distinguished road
Send a message via AIM to TheDreamless
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.
TheDreamless is offline   Reply With Quote