Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<fstream>
- using namespace std;
- main()
- {
- ifstream inData;
- inData.open("text.txt");
- char x=inData.peek();
- int q=0;
- while (q<=4) {
- q++;
- do{q++;
- cout<<x;
- x=inData.peek();
- }while(q<=10);
- }
- cin.get();
- inData.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement