Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main()
- {
- fstream file;
- file.open("plik1.txt", ios::in);
- string textline;
- cout<< "zawartosc tego jebanego pliku: " <<endl;
- while(!file.eof())
- {
- getline(file, textline);
- cout<< textline <<endl;
- }
- file.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement