How do I store address book entries in a file? RRS feed

  • Question

  • I have a final due in one week. I have been through my mind a bunch and I have no solution for this project. I am new, one month into learning C#.. Here is my project description:

    Write a Windows application that maintains an address book.  This address book should hold up to 20 entries.  You must store your data with either arrays or classes.  Each entry will have the following:

    • Last Name, First Name
    • Street Address
    • City
    • State
    • Zip Code

    Your program must have menu items and functionality for:

    • Open Address Book File
    • Save Address Book File
    • Display the address book (names only in alphabetical order by last name)
    • Display all information about an individual entry (allow the user to select this)
    • Add address entry
    • Delete address entry

    To increase the speed of your program, the only times that you should be using the data files is:

    • when the user first chooses to open an address book (the data is read into your array or class)
    • when the user chooses to save an address book or closes the program (the data is written from your array or class to the data file)
    Here is the photo of my GUI for the address book:


    Here is the VS project file in ZIP format:

    ANY help is appreciated!!!
    Wednesday, February 6, 2008 2:08 PM