Question: Write a program in C++ to open and read the contents of the Text1.txt using the file stream class. Close the file and again open
Write a program in C++ to open and read the contents of the Text1.txt using the file stream class.
Close the file and again open it to update the contents of the given file Text1.txt.
Text1.txt: I am enjoying learning OOPS concepts
After update
Text1.txt: I am enjoying learning OOPS concepts
Now learned C++; Java is my next target.
Step by Step Solution
3.36 Rating (152 Votes )
There are 3 Steps involved in it
Code include include using namespace std int main ifstr... View full answer
Get step-by-step solutions from verified subject matter experts
