C++ |
Objectives :
- myofstream_appendText1.cpp
ofstream myfile;
//open for appending and append
myfile.open("data3.txt",ios_base::app);
myfile << " Hey this is another line \n";
myfile.close();
|
|
Step: 1 Create a source file.


|
Step: 2 Edit and save Source file

|
Step: 3 Runtime Views:



Click yes to the above screen.

|
Step:
|
|