//file:  characters4.cpp
//converts lower case to upper case
#include <ctype.h>	//The old C library functions
#include <fstream.h>
int main()
{
	ifstream	fin("text.txt");	//input file
	ofstream	fout("upper.txt");	//output file
	
	char c;
	
	while(fin.get(c))	//get(c) returns true until EOF character is encountered
	{
		//if(c>='a' && c<='z')	//NOT necessary to write (c>=97 && c<=122)
		//	c+='A'-'a';
		c=toupper(c);
			
		fout<<c;
	}
	fout<<endl;
	
	return 0;
}
