Menu
Create New Paste
Archive
H-supertools
Find a Domain
Seo Analyzer
Sign In
Sign Up
×
Sign in
×
Sign in using social network
Facebook
Google
Sign in with your username
Username
Password
×
Sign up
×
Sign up using social network
Facebook
Google
Sign up with your email address
Username
Email
Full Name
Password
The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
File managmnet 102
By Guest on 16th January 2023 12:09:01 PM | Syntax: TEXT | Views: 4
New paste
|
Download
|
Show/Hide line no.
|
Copy text to clipboard
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
fstream myfile;
myfile.open("methology.txt");
string line;
while(!myfile.eof())
{
getline(myfile,line);
cout<<line<<endl;
}
myfile.close();
}
Raw Paste:
#include
#include
using namespace std; int main() { fstream myfile; myfile.open("methology.txt"); string line; while(!myfile.eof()) { getline(myfile,line); cout<
Recent Pastes
Questions
12 hours 41 mins 20 secs ago
Adrs
12 hours 46 mins 30 secs ago
Docs
12 hours 47 mins 14 secs ago
Servs
12 hours 47 mins 57 secs ago
Srvs
12 hours 52 mins 46 secs ago