All pastes #442200 Raw Edit

Something

public text v1 · immutable
·published 2007-04-16 02:09 UTC
rendered paste body
#include <iostream>
#include <string>
#include <fstream>

using namespace std;

void readMenu(void);


int main(void)
{
	readMenu();

	return 0;
}

void readMenu(void)
{
		
	string line;
	ifstream displayMenu;
	displayMenu.open("Menu.txt");
	
	if ( displayMenu.is_open())
	{
		while ( !displayMenu.eof() )
		{
			 getline (displayMenu,line);
			 cout << line << endl;
		}
	}
	else
	{
		cerr << "The Machine is Empty" << endl;
		exit(100);
	}

	displayMenu.close();
}