Advertisement
MeehoweCK

Untitled

Apr 21st, 2021
682
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     string nazwa;
  9.     ifstream Plik;
  10.     Plik.open("plik.txt");
  11.     getline(Plik, nazwa);
  12.     cout << nazwa << endl;
  13.     Plik.close();
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement