- #include<iostream>
- #include<fstream>
- using namespace std;
- int main()
- {
- fstream myfile;
- myfile.open("methology.txt",fstream::out|fstream::app);
- string line="this is appending at the end";
- myfile<<line;//myfile>>line;
- cout<<line<<endl;
- myfile.close();
- }
