Class 12 Computer Science Project(Student Record System using File Handling in C
Here’s a complete sample project work for the Student Record System in C,
Student Record System using File Handling in C
Class 12 Computer Science Project
Submitted By:
- Name: [Your Name]
- Class: 12
- Roll No: [Your Roll No]
- School: [Your School Name]
Table of Contents
- Introduction
- Objectives
- Methodology
- Source Code
- Output Screenshots
- Conclusion
- Future Enhancements
1. Introduction
The Student Record System is a simple C programming project that demonstrates how to store and retrieve data using file handling. It allows users to:
- Add student records (Roll No, Name, Marks)
- View all student records
- Search for a specific student by Roll No
This project is useful for learning file handling operations in C, such as reading, writing, and searching data in a text file (students.txt
). It helps students understand real-world applications of C programming.
2. Objectives
The main objectives of this project are:
✔ To demonstrate file handling concepts in C.
✔ To develop a simple student management system.
✔ To store student records permanently using text files.
✔ To implement basic CRUD (Create, Read, Update, Delete) operations in C.
3. Methodology
Programming Concepts Used:
✅ C Structures: To store student details (Roll No, Name, Marks).
✅ File Handling: Using fopen()
, fwrite()
, fread()
, and fprintf()
to store and retrieve data.
✅ Loops & Conditional Statements: Used for user interactions.
✅ Formatted Input/Output (scanf
, printf
): For user-friendly display.
Working Process:
- Adding Students → User enters student details, which are stored in
students.txt
. - Viewing Students → The program reads all records from
students.txt
and displays them. - Searching Students → The program searches the file by Roll No and displays the matching record.
4. Source Code
5. Output Screenshots
Adding Student Record
Viewing Student Records
Searching for a Student
6. Conclusion
The Student Record System is a basic implementation of file handling in C. It successfully stores, retrieves, and searches student data using a text file. This project demonstrates how structured data can be managed without using a database.