Skip to content

Suraj-Unde/Student-Database-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Student Database System

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.

Overview

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.

Features

  • 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

How It Works

  1. Program Startup - The application retrieves existing student data from the database file
  2. 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
  3. Data Structure - Each student is stored as a node in a linked list
  4. Persistence - Records are saved to a file for future sessions

Tech Stack

  • Language - C
  • Data Structure - Linked List
  • Storage - File-based database
  • Interface - Command-line interface (CLI)

Installation

  1. Clone the repository:

    git clone https://github.com/surajru/Student-Database-System.git
    cd Student-Database-System
  2. Compile the program:

    gcc -o student_database main.c
  3. Run the application:

    ./student_database

Usage

Once the program starts:

  1. Select an option from the menu (1-4)
  2. Follow the on-screen prompts to manage student records
  3. Choose option 4 to save your changes to the database file
  4. The data will persist between program sessions

Example Workflow

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

Requirements

  • C compiler (gcc recommended)
  • Unix-like environment (Linux, macOS, WSL on Windows)
  • Basic command-line knowledge

License

This project is open source and available for educational purposes.

Author

Created by surajru

About

Create and save the student-data into file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages