C++

Objectives :

  • myofstream_createFile1.cpp
    Create a file and write some text with "ofstream"
 

Step: 1 Create a source file.

Step: 2 Edit and save Source file

Step: 3 Runtime Views:

Compile and run  the code

Note the file data5.txt is created

Step: