Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void writeFile()
- {
- try{
- std::ofstream outFile("ex9.txt", std::ios::out);
- outFile <<"n# Contact Data.............: "<< ContactCounter <<"n";
- outFile <<"n########################################################################";
- for(int i=0; i<ContactCounter; i++)
- writeContacts(listContact[i], outFile);
- outFile <<"########################################################################";
- outFile <<"nn";
- outFile.close();
- std::cout << "ntContact index ("<<ContactCounter<<") saved in list.nn";
- }
- catch(std::exception& e) {
- std::cerr << "nt<-|Error|-> Could not read file: "<<e.what()<<"n";
- }
- }
- ########################################################################
- # Contact Data.............: 1
- #
- #
- # Name.....................: jean cesar
- # Address..................: ffghghg
- # Home Number..............: 2234
- # Work Number..............: 565654
- # Mobile Number............: 7777667
- # Email....................: jeanzonta@yahoo.com.br
- # Date of Birth Day........: 29
- # Date of Birth Month......: 04
- # Date of Birth Year.......: 2000
- # DateTime Create Profile..: Tue Jul 4 11:48:44 2017
- ########################################################################
- # Contact Data.............: 2
- ########################################################################
- #
- # Name.....................: zezinho bagunceiro
- # Address..................: fgfdg
- # Home Number..............: 545
- # Work Number..............: 656565
- # Mobile Number............: 675676576
- # Email....................: zezinho2010@gmail.com
- # Date of Birth Day........: 29
- # Date of Birth Month......: 04
- # Date of Birth Year.......: 1987
- # DateTime Create Profile..: Tue Jul 4 12:01:03 2017
- #
- #
- # Name.....................: joaozinho arteiro
- # Address..................: ghjyujyuu
- # Home Number..............: 454
- # Work Number..............: 565765
- # Mobile Number............: 6576766
- # Email....................: joaozinho@yahoo.com.br
- # Date of Birth Day........: 30
- # Date of Birth Month......: 06
- # Date of Birth Year.......: 1998
- # DateTime Create Profile..: Tue Jul 4 12:20:35 2017
- ########################################################################
- # Contact Data.............: 2
- ########################################################################
- #
- # Name.....................: zezinho bagunceiro
- # Address..................: fgfdg
- # Home Number..............: 545
- # Work Number..............: 656565
- # Mobile Number............: 675676576
- # Email....................: zezinho2010@gmail.com
- # Date of Birth Day........: 29
- # Date of Birth Month......: 04
- # Date of Birth Year.......: 1987
- # DateTime Create Profile..: Tue Jul 4 12:01:03 2017
- ########################################################################
- ########################################################################
- #
- # Name.....................: joaozinho arteiro
- # Address..................: ghjyujyuu
- # Home Number..............: 454
- # Work Number..............: 565765
- # Mobile Number............: 6576766
- # Email....................: joaozinho@yahoo.com.br
- # Date of Birth Day........: 30
- # Date of Birth Month......: 06
- # Date of Birth Year.......: 1998
- # DateTime Create Profile..: Tue Jul 4 12:20:35 2017
- ########################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement