Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <fstream>
- #include <conio.h>
- using namespace std;
- int main()
- {
- ofstream plik1;
- plik1.open("plik1.txt");
- string tab;
- while(getchar() != '\n')
- {
- getline(cin, tab, '\n');
- plik1 << tab << endl;
- }
- plik1.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement