Quiz 5
Name:
(1 in) Write a program to read in the name of an input file and to count the number of non-white space characters in the file and to print this number. For example, if the contents of the file are:
CSIT 121 Fall 04
This is a good class.
Then the program should display 30.
(2 out) Write a program to read in the name of two input files and to append the contents of the second file to the first and write that to a new file whose name is entered by the user. The structure of the two input files should be maintained in the output file.
For example if the contents of the first file are
CSIT 121 Fall 04
This is a good class.
And the contents of the second file are
Second test is Nov 10.
Be well prepared.
Then the contents of the output file should be
CSIT 121 Fall 04
This is a good class.
Second test is Nov 10.
Be well prepared.