# iamdneirf/c-programming-practice architecture

> Architecture diagram of the GitHub repository iamdneirf/c-programming-practice, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iamdneirf/c-programming-practice
- Repository: https://github.com/iamdneirf/c-programming-practice

## Overview

This repository is a small set of standalone C file-I/O practice programs, not a single application. Two programs read and display content from `lol.txt`; the third collects three people’s names and ages, writes them to `INFO.txt`, then reads and displays that file. The excerpts show each program’s file and console operations; no shared runtime or broader product workflow is evident.

Main entry points: [`Files/write_data.c`](https://github.com/iamdneirf/c-programming-practice/blob/main/Files/write_data.c) (Write and display), [`Files/read-show_line.c`](https://github.com/iamdneirf/c-programming-practice/blob/main/Files/read-show_line.c) (Read lines), [`Files/read-show_word.c`](https://github.com/iamdneirf/c-programming-practice/blob/main/Files/read-show_word.c) (Read words)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_filesystem[("Local files")]
node_read_line["Read lines<br/>[read-show_line.c]"]
node_read_word["Read words<br/>[read-show_word.c]"]
node_write_data["Write and display<br/>[write_data.c]"]

node_user -->|"runs"| node_read_line
node_read_line -->|"reads lol.txt"| node_filesystem
node_read_line -->|"displays lines"| node_user
node_user -->|"runs"| node_read_word
node_read_word -->|"reads lol.txt"| node_filesystem
node_read_word -->|"displays words"| node_user
node_user -->|"enters records"| node_write_data
node_write_data -->|"writes INFO.txt"| node_filesystem
node_write_data -->|"reads INFO.txt"| node_filesystem
node_write_data -->|"displays contents"| node_user

click node_read_line "https://github.com/iamdneirf/c-programming-practice/blob/main/Files/read-show_line.c"
click node_read_word "https://github.com/iamdneirf/c-programming-practice/blob/main/Files/read-show_word.c"
click node_write_data "https://github.com/iamdneirf/c-programming-practice/blob/main/Files/write_data.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_user toneBlue
class node_filesystem toneAmber
class node_read_line,node_read_word,node_write_data toneTeal
```

## Components

### Other components

- **User**
- **Local files**
- [Read lines](https://github.com/iamdneirf/c-programming-practice/blob/main/Files/read-show_line.c): `Files/read-show_line.c`
- [Read words](https://github.com/iamdneirf/c-programming-practice/blob/main/Files/read-show_word.c): `Files/read-show_word.c`
- [Write and display](https://github.com/iamdneirf/c-programming-practice/blob/main/Files/write_data.c): `Files/write_data.c`

## Connections

- User → Read lines: runs
- Read lines → Local files: reads lol.txt (evidence: `Files/read-show_line.c`)
- Read lines → User: displays lines (evidence: `Files/read-show_line.c`)
- User → Read words: runs
- Read words → Local files: reads lol.txt (evidence: `Files/read-show_word.c`)
- Read words → User: displays words (evidence: `Files/read-show_word.c`)
- User → Write and display: enters records (evidence: `Files/write_data.c`)
- Write and display → Local files: writes INFO.txt (evidence: `Files/write_data.c`)
- Write and display → Local files: reads INFO.txt (evidence: `Files/write_data.c`)
- Write and display → User: displays contents (evidence: `Files/write_data.c`)
