C++

Objectives :

  • myfstream_addingText1.cpp
    adding text to an file with fstream
 

Step: 1 Create a source file.

Create a text file in the same working folder, and name it as data4.txt, as shown below and

Step: 2 Edit and save Source file

Step: 3 Runtime Views:

 

Step: