Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <cstring>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. const int N=349;
  10. string s,nazwa;
  11.  
  12. ifstream input("PB_Backup.vcf");
  13.  
  14. ifstream numery("numery.txt");
  15.  
  16. for (int i=0;i<N;i++)
  17. {
  18. getline(numery,nazwa);
  19.  
  20. ofstream output (nazwa.c_str());
  21. do
  22. {
  23. getline (input,s);
  24. output << s << "\n";
  25. } while (s != "END:VCARD");
  26. }
  27.  
  28. input.close();
  29.  
  30. numery.close();
  31.  
  32. return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement