// Mr. Minich
// CMPSC 101
// Ch. 5 Demo Program #1 // January 30, 2000
// Purpose - to demonstrate opening a file for input and reading one piece of data from the file

#include <iostream>
#include <fstream>
using namespace std;

int main()
{
     int num1 = 0; // number read from file
     ifstream infile("myfile.txt"); // file to be read in this demo program

     infile >> num1;

     cout << "The first number is " << num1 << endl;

     infile.close();

     return 0;
}// end of main