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 105
By Guest on 16th January 2023 12:33:06 PM | Syntax: TEXT | Views: 3



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



  • Recent Pastes
  • Questions
    14 hours 2 mins 48 secs ago
  • Adrs
    14 hours 7 mins 58 secs ago
  • Docs
    14 hours 8 mins 42 secs ago
  • Servs
    14 hours 9 mins 25 secs ago
  • Srvs
    14 hours 14 mins 14 secs ago