#include
#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