PhoneBook Directory CLI
A command-line contact management utility written in C that stores, searches, modifies, and deletes contact entries using direct binary file I/O operations.
Project Overview
The PhoneBook Directory CLI is an efficient command-line contact book application developed in C. It was constructed to master low-level byte-oriented file handling (`rb+`, `wb+`), struct byte packing, and linear record scanning.
The utility saves each entry (Name, Phone Number, Email, Address) directly as binary records onto disk. This eliminates text-parsing overhead and ensures instant reading and atomic modifications even without third-party databases.
.dat)fseek, ftell)Core Features & Implementation
Full CRUD Contact Life Cycle
Menu-driven terminal interface to create, display, search, update, and remove contact records.
Multi-Field Search
Search records by full or partial name or contact phone numbers with instant terminal feedback.
Low Memory Footprint
Requires negligible system memory; streams records directly through fixed-size C structs rather than loading unneeded data into RAM.
Safe Input Buffering
Cleans stdin buffer inputs to prevent string truncation issues or accidental input skips during interactive CLI sessions.