Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<fstream>
- using namespace std;
- int main(){
- ifstream plik ("wiersz.txt");
- if(!plik.is_open()) cout << "Brak dostepu do pliku";
- int i = 0;
- char a;
- while(plik.get(a)){
- if(i%3==0) cout << a << endl;
- i++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment