The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
File managmnet 108
By Guest on 16th January 2023 12:43:25 PM | Syntax: TEXT | Views: 8



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1. #include<iostream>
  2. #include<fstream>
  3. using namespace std;
  4. int main()
  5. {
  6.         fstream myfile;
  7.         myfile.open("methology.txt",fstream::out);
  8.         string line="abas               c++             66";
  9.  
  10.         myfile<<line;//myfile>>line;
  11.         cout<<line<<endl;      
  12.        
  13.        
  14.         myfile.close();
  15. }



  • Recent Pastes
  • Questions
    13 hours 37 mins 10 secs ago
  • Adrs
    13 hours 42 mins 20 secs ago
  • Docs
    13 hours 43 mins 4 secs ago
  • Servs
    13 hours 43 mins 47 secs ago
  • Srvs
    13 hours 48 mins 36 secs ago