CIS 1057 - Homework 6

Handed out: 10/05/10
Due: by 10pm on 10/11/10

Using input redirection read the file data6s10.txt and print out its content. Also, print out the number of characters found in the file, the number of lines, and, optionally, the number of tokens [a token is a maximal sequence of non-white characters [i.e., ' ', '\t', '\n']].
To read a character from the file use getchar(). To write the file to the screen use putchar().

Email your programs to the TA.