A simple console-based Hostel Management System developed in C using file handling.
This project performs basic CRUD operations (Create, Read, Search, Delete) for managing hostel student records.
This system allows the user to:
- Add new student records
- View all student records
- Search for a student by ID
- Delete a student record
- Store data permanently using file handling
All records are stored in a binary file named hostel.txt.
- Language: C
- Structures
- File Handling (Binary Files)
- Functions
- Switch Case
- Looping (while loop)
Hostel-Management-System
│
├── hostel_management.c
├── hostel.txt (auto-generated after adding records)
└── README.md
Takes input:
- Student ID
- Name
- Room Number
- Fees
Stores data in hostel.txt using binary file mode.
Displays all stored student records in tabular format.
- Searches a student record using Student ID
- Displays student details if found
- Deletes a student record by ID
- Uses a temporary file (
temp.txt) to remove the selected record
- Records are stored in binary format
- File used:
hostel.txt - Temporary file used during deletion:
temp.txt