/* Lecture Code 0.3
 *
 * Code to strip a file of all numeric data and print it to screen.
 *
 */
 
#include <iostream>
#include <fstream>	// For ifstream
#include <string>	// These two lines replace #include "genlib.h"
using namespace std;

int main()
{
	ifstream input("datafile.dat");
	
	while(true)
	{
		int readInInteger;
		input >> readInInteger;
		
		if(input.eof())
			break;
		
		if(input.fail())
		{
			input.clear();
			
			string token;
			input >> token;
			cout << token << ' ';
		}			
	}
	
	return 0;
}