Create a class “File Handling” that has two member functions. write func() will write the data into a file. 1. Open a file for writing the given data into a file “data.txt” and display a confirmation message “Data is written successfully” on a console application. Write text to be written on file 2. Open a file and append data to the end of the file and also display a confirmation message “Data is written successfully” on a console application. The extraction operator >>is used with cin object. The same operator can also be used to read the data from files. 3. Open a file and append data to the end of the file and display a confirmation message “Data is written successfully” on a console application. eof() The word seekg stands for seek get. » readfunc() will read the data from a file. The given output should be displayed while reading data. Also display the cursor position on a console application after reading single word. Output: Text written operator >> cin The same operator data from files. () Word seek get Write a main program to demonstrate the functionality of program.
Answers
Answered by
1
Answer:
how can we do this mate?
Similar questions
Math,
4 months ago
Social Sciences,
4 months ago
Social Sciences,
4 months ago
English,
9 months ago
English,
9 months ago
Biology,
1 year ago