Skip to content

An Address Book application in C using structs and file I/O for managing contacts efficiently. Implements CRUD operations (Create, Read, Update, Delete) with persistent storage. Demonstrates data structures, modular programming, and system-level file handling concepts.

License

Notifications You must be signed in to change notification settings

SanjaiScript/AddressBook

Repository files navigation

📅 Project Information Project Name : Address Book Management System in C Author : Sanjai Kumar M

📝 Description

The Address Book Management System is a C-based console application designed to manage personal or organizational contacts. It provides the following features:

->Create new contacts ->Search existing contacts ->Edit contact information ->Delete contacts ->List all saved contacts ->Sort contacts (Name / Number / Email / Normal) ->Save data to a CSV file

This project demonstrates file handling, string manipulation, structures, and menu-driven programming in C.

📌 Menu Interface Address Book Menu:

  1. Create contact
  2. Search contact
  3. Edit contact
  4. Delete contact
  5. List all contacts
  6. Save contacts
  7. Exit Enter your choice:

🧪 Sample Input 1: Listing Contacts Enter your choice: 5 Display sort Menu:

  1. Sort by Name
  2. Sort by Number
  3. Sort by Email
  4. Normal method Enter your choice: 4

📤 Sample Output 1 Index | Name | Phone Number | Email ID

0 | John Doe | 1234567890 | [email protected] 1 | Alice Smith | 0987654321 | [email protected] 2 | Bob Johnson | 1112223333 | [email protected] 3 | Carol White | 4445556666 | [email protected] 4 | David Brown | 7778889999 | [email protected] 5 | Eve Davis | 6665554444 | [email protected] 6 | Frank Miller | 3334445555 | [email protected] 7 | Sanjai | 8825657765 | [email protected]

🧪 Sample Input 2: Adding a Contact Enter your choice: 1 Enter the name : Kumar Enter the phone number: 8825657755 Enter the email ID : [email protected] Contact added successfully

💾 Saving Contacts Enter your choice: 6 Contacts saved successfully

📤 Updated Contact List Index | Name | Phone Number | Email ID

0 | John Doe | 1234567890 | [email protected] 1 | Alice Smith | 0987654321 | [email protected] 2 | Bob Johnson | 1112223333 | [email protected] 3 | Carol White | 4445556666 | [email protected] 4 | David Brown | 7778889999 | [email protected] 5 | Eve Davis | 6665554444 | [email protected] 6 | Frank Miller | 3334445555 | [email protected] 7 | Sanjai | 8825657765 | [email protected] 8 | Kumar | 8825657755 | [email protected]

🚀 How to Compile gcc address_book.c -o address_book

▶️ How to Run ./address_book

🔮 Future Enhancements

->Add JSON or binary storage format ->Password-protected address book ->Import/export contacts ->GUI version using GTK/QT ->Duplicate contact detection

MIT License

About

An Address Book application in C using structs and file I/O for managing contacts efficiently. Implements CRUD operations (Create, Read, Update, Delete) with persistent storage. Demonstrates data structures, modular programming, and system-level file handling concepts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages