A simple console-based Student Management System written in C++ that allows you to manage student records using file handling.
- ➕ Add new student records
- 📄 Display all student records
- 🔍 Search student by roll number
- ✏️ Modify existing records
- ❌ Delete student records
- 💾 Persistent storage using text file (
studentRecord.txt)
- C++ (Core Language)
- File Handling (
fstream) - Standard Input/Output
.
├── main.cpp # Source code
├── studentRecord.txt # Data file (auto-created)
└── README.md # Project documentation
g++ main.cpp -o student./student- The program stores student data in a text file using the format:
Name|RollNo|Course|Address
-
Each function performs operations directly on the file:
- Insert → Appends new data
- Display → Reads and prints all records
- Search → Finds a record by roll number
- Modify → Updates a specific record using a temporary file
- Delete → Removes a record using a temporary file
--- STUDENT MANAGEMENT SYSTEM ---
1. Add Record
2. Display All
3. Modify
4. Search
5. Delete
6. Exit
- No validation for duplicate roll numbers
- Data stored in plain text (not secure)
- Console-based UI only
- Not optimized for large datasets
- Add GUI (using Qt or similar)
- Use database (MySQL / SQLite)
- Login system for security
Feel free to fork this repository and improve it. Pull requests are welcome!
This project is open-source and free to use.
Developed as a beginner-friendly C++ project to demonstrate file handling and basic CRUD operations.