Advertisement
Guest User

Untitled

a guest
Jul 4th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. void writeFile()
  2. {
  3. try{
  4. std::ofstream outFile("ex9.txt", std::ios::out);
  5. outFile <<"n# Contact Data.............: "<< ContactCounter <<"n";
  6. outFile <<"n########################################################################";
  7. for(int i=0; i<ContactCounter; i++)
  8. writeContacts(listContact[i], outFile);
  9. outFile <<"########################################################################";
  10. outFile <<"nn";
  11. outFile.close();
  12. std::cout << "ntContact index ("<<ContactCounter<<") saved in list.nn";
  13. }
  14. catch(std::exception& e) {
  15. std::cerr << "nt<-|Error|-> Could not read file: "<<e.what()<<"n";
  16. }
  17. }
  18.  
  19. ########################################################################
  20. # Contact Data.............: 1
  21. #
  22. #
  23. # Name.....................: jean cesar
  24. # Address..................: ffghghg
  25. # Home Number..............: 2234
  26. # Work Number..............: 565654
  27. # Mobile Number............: 7777667
  28. # Email....................: jeanzonta@yahoo.com.br
  29. # Date of Birth Day........: 29
  30. # Date of Birth Month......: 04
  31. # Date of Birth Year.......: 2000
  32. # DateTime Create Profile..: Tue Jul 4 11:48:44 2017
  33. ########################################################################
  34.  
  35. # Contact Data.............: 2
  36. ########################################################################
  37. #
  38. # Name.....................: zezinho bagunceiro
  39. # Address..................: fgfdg
  40. # Home Number..............: 545
  41. # Work Number..............: 656565
  42. # Mobile Number............: 675676576
  43. # Email....................: zezinho2010@gmail.com
  44. # Date of Birth Day........: 29
  45. # Date of Birth Month......: 04
  46. # Date of Birth Year.......: 1987
  47. # DateTime Create Profile..: Tue Jul 4 12:01:03 2017
  48. #
  49. #
  50. # Name.....................: joaozinho arteiro
  51. # Address..................: ghjyujyuu
  52. # Home Number..............: 454
  53. # Work Number..............: 565765
  54. # Mobile Number............: 6576766
  55. # Email....................: joaozinho@yahoo.com.br
  56. # Date of Birth Day........: 30
  57. # Date of Birth Month......: 06
  58. # Date of Birth Year.......: 1998
  59. # DateTime Create Profile..: Tue Jul 4 12:20:35 2017
  60. ########################################################################
  61.  
  62. # Contact Data.............: 2
  63.  
  64. ########################################################################
  65. #
  66. # Name.....................: zezinho bagunceiro
  67. # Address..................: fgfdg
  68. # Home Number..............: 545
  69. # Work Number..............: 656565
  70. # Mobile Number............: 675676576
  71. # Email....................: zezinho2010@gmail.com
  72. # Date of Birth Day........: 29
  73. # Date of Birth Month......: 04
  74. # Date of Birth Year.......: 1987
  75. # DateTime Create Profile..: Tue Jul 4 12:01:03 2017
  76. ########################################################################
  77. ########################################################################
  78. #
  79. # Name.....................: joaozinho arteiro
  80. # Address..................: ghjyujyuu
  81. # Home Number..............: 454
  82. # Work Number..............: 565765
  83. # Mobile Number............: 6576766
  84. # Email....................: joaozinho@yahoo.com.br
  85. # Date of Birth Day........: 30
  86. # Date of Birth Month......: 06
  87. # Date of Birth Year.......: 1998
  88. # DateTime Create Profile..: Tue Jul 4 12:20:35 2017
  89. ########################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement