Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
#include <fstream> int main() { std::ofstream outfile; outfile.open("a.txt", std::ios_base::app); return 0; } /* Creates the file if it can't be found when opening it for ofstream */
17th May 2019, 10:36 AM
Earl Chukwu
Earl Chukwu - avatar