Answers for "ofstream c++"

C++
0

write to file in C++

ofstream myfile;
myfile.open("file.txt");

myfile << "write this to file"
Posted by: Guest on July-01-2020
0

ofstream c++

ofstream file;
file.open("file.txt");
file << {data} << endl;
file.close();
Posted by: Guest on November-12-2021

Browse Popular Code Answers by Language