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 107
By Guest on 16th January 2023 12:39:10 PM | Syntax: TEXT | Views: 16



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.         int line=789;
  9.  
  10.         myfile<<line;//myfile>>line;
  11.         cout<<line<<endl;      
  12.        
  13.        
  14.         myfile.close();
  15. }



  • Recent Pastes
  • Questions
    13 hours 45 mins 47 secs ago
  • Adrs
    13 hours 50 mins 57 secs ago
  • Docs
    13 hours 51 mins 41 secs ago
  • Servs
    13 hours 52 mins 24 secs ago
  • Srvs
    13 hours 57 mins 13 secs ago