#include <iostream.h>
#include <fstream.h>

int main()
{
	int tally;
	char num[10];
	fstream tfile;
	tfile.open("tally.txt",ios::in);
	tfile>>tally;
	cout<<tally;
	++tally;
	cout<<" -> "<<tally;
	tfile.close();
	tfile.open("tally.txt",ios::out);
	sprintf(num,"%i",tally);
	tfile<<num;
	//tfile<<EOF;	//not in linux, only for windows
	tfile.close();
}
