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 104
By Guest on 16th January 2023 12:23:11 PM | Syntax: TEXT | Views: 12



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");
  8.         string line;
  9.         while(!myfile.eof())
  10.         {
  11.         myfile>>line;//myfile>>line;
  12.         cout<<line<<endl;      
  13.         }
  14.        
  15.         myfile.close();
  16. }



  • Recent Pastes
  • Questions
    14 hours 17 mins 25 secs ago
  • Adrs
    14 hours 22 mins 35 secs ago
  • Docs
    14 hours 23 mins 19 secs ago
  • Servs
    14 hours 24 mins 2 secs ago
  • Srvs
    14 hours 28 mins 51 secs ago