// Mr. Minich
// CMPSC 101
// Ch. 5 Demo Program #7
// January 30, 2000
// Purpose - to demonstrate appending to an existing file.

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

int main()
{
   int num = 0;

   cout << "Enter the value that you'd like to append to the file: ";
   cin >> num;

   ofstream outfile("data.txt", ios::app);

   outfile << num << endl;

   outfile.close();

   return 0;
}// end of main