#include <stdio.h>
#include <stdlib.h>
#include "functions.h"

int main(int argc, char *argv[])
{
	FILE *in, *out;

	in = fopen(argv[1], "r"); //Opens input file (reading)
	out = fopen(argv[2], "w"); //Opens output file (writing)


	fprintf(out, "**********************************************\n"); //Opening Header
	fprintf(out, "Every character in the below text file has had \n");
	fprintf(out, "its case changed. There are also integers in \n");
	fprintf(out, "the file but they have not been altered.\n");
	fprintf(out, "**********************************************\n");


	change_case(in, out); //Changes case and prints
	
	word_sent_count(in, out); //Counts words and sentences and prints

	find_nums(in, out); //Find and print ints

	sum_avg(in, out); //Sums and averages ints

	fclose(in);
	fclose(out);

	return 0;
}
