#include <bits/stdc++.h>
using namespace std;

int main()
{
	fstream file;
	ofstream ofile("file.txt", ios::out | ios::app);

	if (!ofile.is_open()) {

		cout << "file not found";
	}
	else {

		string s;
        getline(cin,s);
        ofile << s;
		cout<<"\nfile stored the line...!";
	}

	return 0;
}
