/// G. Hagopian -- PPP11 ex 01

/*
1. Write a program that reads a text file and converts its input to all 
lower case, producing a new file.
*/

#include "std_lib_facilities.h"

void convertUpperToLower(ifstream& ifs, ofstream& ofs) {
	char ch{ '0' };
	while (ifs.get(ch)) {
		ofs << char(tolower(ch));
	}
}

int main() {
	ifstream ifs("eap.txt");
	if (!ifs) cout << "Couln't find that file.";
	ofstream ofs("lowereap.txt");

	convertUpperToLower(ifs, ofs);
}
