A C-based command-line application for managing student records using a linked list data structure. This system allows you to create, manage, and persistently store student data in a file-based database.
The Student Database System is a lightweight, file-based student record management application. It uses a linked list data structure to dynamically manage student nodes in memory. The application retrieves existing student data from a database file on startup and provides an interactive menu for managing records.
- Add Records - Create and add new student records to the database
- Delete Records - Remove student records from the database
- View Records - Display all student records currently stored
- Persistent Storage - Automatically save records to a database file
- Data Retrieval - Automatically load student data from the database file on program startup
- Linked List Implementation - Efficient dynamic memory management using linked lists
- Interactive Menu - User-friendly command-line interface for record management
- Program Startup - The application retrieves existing student data from the database file
- Menu Options - The system presents the following options:
- Option 1: Add a new student record
- Option 2: Delete a student record
- Option 3: Print/View all student records
- Option 4: Save records to the database file
- Data Structure - Each student is stored as a node in a linked list
- Persistence - Records are saved to a file for future sessions
- Language - C
- Data Structure - Linked List
- Storage - File-based database
- Interface - Command-line interface (CLI)
-
Clone the repository:
git clone https://github.com/surajru/Student-Database-System.git cd Student-Database-System -
Compile the program:
gcc -o student_database main.c
-
Run the application:
./student_database
Once the program starts:
- Select an option from the menu (1-4)
- Follow the on-screen prompts to manage student records
- Choose option 4 to save your changes to the database file
- The data will persist between program sessions
1. Start the program
2. Load existing student records from the database
3. Add new student record → Enter student details
4. View all records → Display current students
5. Save records → Write data to database file
6. Exit the program
- C compiler (gcc recommended)
- Unix-like environment (Linux, macOS, WSL on Windows)
- Basic command-line knowledge
This project is open source and available for educational purposes.
Created by surajru