A simple C application to manage a phonebook database with basic CRUD (Create, Read, Update, Delete) functionality.Contact data is stored in a binary file using file handling.
- Add a new contact (name and phone number)
- View all contacts
- Update an existing contact
- Delete a contact
- Persistent storage using a binary file (
phonebook.dat
)
- Clone this repository:
git clone https://github.com/GET-UNKNOWN-ERR0R/simple-phonebook.git
- Navigate to Folder:
cd simple-phonebook
- Compile the program using GCC:
gcc phonebook.c -o phonebook
- Run the program:
./phonebook
--- Phonebook ---
- Add Contact
- View Contacts
- Update Contact
- Delete Contact
- Exit Enter your choice: 1 Enter name: Arpit Prajapati Enter phone number: 123456789 Contact added successfully!
--- Phonebook ---
- Add Contact
- View Contacts
- Update Contact
- Delete Contact
- Exit Enter your choice: 2 --- Contacts --- Name: Arpit Prajapati, Phone: 123456789