Computer Science, asked by Anonymous, 6 months ago

Q1: Create a class “FileHandling” that has two member functions.
 writefunc() 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.

Answers

Answered by KousthubM2008
0

Answer:

****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************

Explanation:

Similar questions