D W

D W

  • NA
  • 12
  • 21.6k

Need a Windows application that gets names and e-mail addresses from the user and displays a list of all of the user's contacts

Oct 25 2012 12:29 AM
Write a Windows application that gets names and e-mail addresses from the user and displays a list of all of the user's contacts. Each time the user enters a new contact, he/she should able to see it added to a list of previously stored contacts. For example, in the following sample output below, after the user clicks the "Add Contact" button, the list will include John Mann's contact information at the bottom.

Sample output:


Pseudocode:

When the "Add Contact" button is clicked

Open an output file stream for appending

Write the contact's name and e-mail address to the file

Close the file stream

Clear the list

Open an input file stream for reading

Add each line of the file to the list

Close the file stream

When the form closes Close the input and output file streams



Answers (1)