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
*/