Discussion :: File Handling - Section 1
-
What will be the output of the following program?
Note:Includes all required header files
using namespace std;int main()
{
ofstream ofile;
ofile.open ("find.txt");
ofile << "letsfindcourse" << endl;
cout << "Data written to file" << endl;
ofile.close();
return 0;
}
Be The First To Comment