#include <iostream>#include <fstream>using namespace std;ofstream outFile("file.txt");outFile << "Line 1\nLine 2\n";outFile.close();