Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <cstdlib>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- using namespace std;
- int main(int argc, char** argv) {
- string line,x;
- fstream file;
- file.open("z.txt", ios::in);
- if(file.good()==true)
- {
- while(!file.eof())
- {
- getline(file,line);
- x=line;
- }
- file.close();
- }
- cout<<endl<<x;
- cout<<endl;
- cout<<endl<<"Zakres: ";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement