Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int OtworzPlik(vector<string>&line)
- {
- ifstream in("../test.txt");
- if (!in.is_open())
- {
- cout << "Blad otwarcia pliku" << endl;
- return 0;
- }
- string temp;
- while (getline(in, temp))
- {
- line.push_back(temp);
- }
- for (auto it : line)
- {
- cout << it << endl;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement