0% found this document useful (0 votes)
44 views

OOP Assignment 4

This document provides details for Assignment-4 for the class SE in the course OOP taught by Vidhya R Vasekar. It includes 5 questions related to file input/output in C++. Question 1 asks students to write a program to create a file and read/write employee data including name, ID, and salary for at least 3 employees. Question 2 asks students to explain error handling in file I/O with a program. Question 3 asks students to explain the functions open(), get(), getline(), tellg(), seekg(), and seekp(). Question 4 asks about file pointers and opening/closing files. Question 5 asks students to explain the stream class hierarchy for file handling in C++.

Uploaded by

Prathamesh Patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

OOP Assignment 4

This document provides details for Assignment-4 for the class SE in the course OOP taught by Vidhya R Vasekar. It includes 5 questions related to file input/output in C++. Question 1 asks students to write a program to create a file and read/write employee data including name, ID, and salary for at least 3 employees. Question 2 asks students to explain error handling in file I/O with a program. Question 3 asks students to explain the functions open(), get(), getline(), tellg(), seekg(), and seekp(). Question 4 asks about file pointers and opening/closing files. Question 5 asks students to explain the stream class hierarchy for file handling in C++.

Uploaded by

Prathamesh Patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Dr. D.Y.

Patil Unitech Society’s,


Dr. D.Y. Patil Institute of Technology
Department of Artificial Intelligence and Data Science

ASSIGNMENT-4

Department: AI & DS Semester: I Academic Year – 2023-24


Class: SE

Course: OOP Course faculty: Vidhya R Vasekar

Date of Release: Date of Submission:

Question Question CO
No. Mapping
Q1 Write a program to create a file, read and write the record into
it. Every record contains Employee Name, Id, and Salary. Store CO4
and retrieve at least 3 employee data
Q2 Explain error handling in file I/O with suitable program. CO4

Q3 Explain the following file handling functions : CO4


1. open( )
2. get( )
3. getline( )
4. tellg()
5. seekg()
6. seekp()
Q4 What is file pointer? Write a note on file opening & file closing. CO4

Q5 Explain stream classes hierarchy for file handling in C++. CO4

(Vidhya R Vasekar)
Course faculty
Dr. D.Y. Patil Unitech Society’s,
Dr. D.Y. Patil Institute of Technology
Department of Artificial Intelligence and Data Science

You might also like