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.

C Language Binary File I/O CLI Disk Persistence
PhoneBook Application Terminal Preview

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.

Language
Standard C (ANSI C)
Storage Format
Binary Struct Serialization (.dat)
I/O Strategy
Direct File Seeking (fseek, ftell)
Repository
Open Source on GitHub

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.