How gnelshahnazaryan/file_system_c works
File_System_C is a menu-driven C program for managing person records in a binary file and exporting them to text. The principal workflow is a user choosing an operation, the CLI dispatching to a record operation, and that operation reading or changing the binary store; export additionally writes a text document. The operations cover adding, listing, searching, updating, removing, counting, and resetting records. The README contains only the project name, so this map is based on the sampled source; it does not establish behavior beyond it.
Main entry points: struct_in_file.c Menu CLI · struct.bin Binary records · functions.c Export text · Persons.txt Text records
Components 14
CLI
- Menu CLI
src/struct_in_file.c - Menu display
src/functions.c
Record operations
- Add records
src/functions.c - Print one
src/functions.c - Search name
src/functions.c - Update record
src/functions.c - Remove record
src/functions.c - Count records
src/functions.c - Reset store
src/functions.c - Print all
src/functions.c - Export text
src/functions.c
File storage
- Binary records
store/struct.bin - Text records
store/Persons.txt
Other components
- User
Connections 24
- User → Menu CLI: chooses operation
- Menu CLI → User: prompts and prints
- Menu CLI → Menu display: displays menu
- Menu CLI → Add records: dispatches add
- Menu CLI → Print one: dispatches lookup
- Menu CLI → Search name: dispatches search
- Menu CLI → Update record: dispatches update
- Menu CLI → Remove record: dispatches removal
- Menu CLI → Count records: dispatches count
- Menu CLI → Reset store: dispatches reset
- Menu CLI → Print all: dispatches listing
- Menu CLI → Export text: dispatches export
- Add records → Binary records: appends records
- Print one → Binary records: reads record
- Print one → Count records: checks record count
- Search name → Binary records: reads records
- Update record → Binary records: reads and updates
- Remove record → Binary records: rewrites records
- Count records → Binary records: counts records
- Reset store → Binary records: truncates file
- Print all → Binary records: reads records
- Export text → Binary records: reads records
- Export text → Count records: gets record count
- Export text → Text records: writes records