// ~CS35/files_12.cpp

#include "CS35files.h"

int main ()
{
	ifstream infile;
	char  ch, in_name[80];
	cout <<"We will read a text file to its end.\n";
	request_and_open_an_in_file(infile, in_name);
	//while (!infile.eof()) this will exctract everything yet last ch printed 2x
	while (infile.get(ch))
	{
		//infile >> ch; this will take everything without spaces
		infile.get(ch);
		cout << ch;
	}
	cout << endl;
	cout <<"That's all, folks.";
	return 0;
}
